You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const world =createEmbeddedWorld('./custom-workflow-data');
75
+
const world =createEmbeddedWorld({ dataDir: './custom-workflow-data' });
76
76
```
77
77
78
78
### Port
79
79
80
-
The local world automatically detectsyour server port from the `PORT` environment variable:
80
+
By default, the embedded world **automatically detects** which port your application is listening on using process introspection. This works seamlessly with frameworks like SvelteKit, Vite, and others that use non-standard ports.
const world =createEmbeddedWorld(undefined, 3000);
100
+
const world =createEmbeddedWorld({ port: 3000 });
101
+
```
102
+
103
+
### Base URL
104
+
105
+
For advanced use cases like HTTPS or custom hostnames, you can override the entire base URL. When set, this takes precedence over all port detection and configuration.
106
+
107
+
**Use cases:**
108
+
- HTTPS dev servers (e.g., `next dev --experimental-https`)
0 commit comments