Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/crazy-days-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@workflow/cli": patch
"@workflow/web": patch
---

Update default fallback path for connecting to embedded world
8 changes: 7 additions & 1 deletion packages/cli/src/lib/inspect/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ const possibleWorkflowDataPaths = [
];

async function findWorkflowDataDir(cwd: string) {
for (const path of possibleWorkflowDataPaths) {
const paths = [
...possibleWorkflowDataPaths,
// This will be the case for testing CLI/Web from the CLI/Web
// package folders directly
'../../workbench/nextjs-turbopack/.next/workflow-data',
];
for (const path of paths) {
const fullPath = join(cwd, path);
if (
await access(fullPath)
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { WorldConfig } from '@/lib/config-world';
// Default configuration
const DEFAULT_CONFIG: WorldConfig = {
backend: 'embedded',
dataDir: '../../workbench/nextjs-turbopack/.next/workflow-data',
dataDir: './.next/workflow-data',
port: '3000',
env: 'production',
};
Expand Down
Loading