Skip to content

Commit 54b089b

Browse files
committed
also pages
1 parent b65c248 commit 54b089b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,9 @@ wrangler pages dev [<DIRECTORY>] [OPTIONS]
966966
- IP address to listen on, defaults to `localhost`.
967967
- `--port` <Type text="number" /> <MetaInfo text="optional (default: 8788)" />
968968
- The port to listen on (serve from).
969+
- `--config`, `-c` <Type text="string[]" /> <MetaInfo text="optional" />
970+
- Path(s) to [Wrangler configuration file](/workers/wrangler/configuration/). If not provided, Wrangler will use the nearest config file based on your current working directory.
971+
- You can provide additional configuration files in order to run Workers alongside your Pages project, like this: `wrangler pages dev -c ./wrangler.toml -c ../other-worker/wrangler.toml`. The first argument must point to your Pages configuration file, and the subsequent configurations will be accessible via a Service binding from your Pages project.
969972
- `--binding` <Type text="string[]" /> <MetaInfo text="optional" />
970973
- Bind an environment variable or secret (for example, `--binding <VARIABLE_NAME>=<VALUE>`).
971974
- `--kv` <Type text="string[]" /> optional

0 commit comments

Comments
 (0)