Skip to content

Commit 3bcf379

Browse files
feat: Add --ip option to allow fix for hanging when run in GitHub Actions. (#63)
1 parent 7b6f033 commit 3bcf379

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/commands/preview.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export default defineCommand({
1919
required: false,
2020
default: '.'
2121
},
22+
ip: {
23+
type: 'string',
24+
description: 'The IP address to bind the preview server to.',
25+
required: false,
26+
},
2227
'log-level': {
2328
type: 'string',
2429
description: 'The log level to use.',
@@ -86,6 +91,9 @@ export default defineCommand({
8691
if (args['log-level']) {
8792
wranglerArgs.push(`--log-level=${args['log-level']}`)
8893
}
94+
if (args.ip) {
95+
wranglerArgs.push(`--ip=${args.ip}`)
96+
}
8997
if (nitroConfig.preset === 'cloudflare-pages') {
9098
consola.info(`Starting \`wrangler pages dev .\` command...`)
9199
await execa(options)`wrangler pages dev . ${wranglerArgs}`

0 commit comments

Comments
 (0)