Skip to content

Commit d368ada

Browse files
committed
fix: revert server js
1 parent e221234 commit d368ada

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/dev/server.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ const { version } = require('../../package.json');
2323
global.__rootdir = resolve(fileURLToPath(import.meta.url), '..', '..', '..');
2424

2525
async function run(args) {
26-
const devPort = process.env.AUDIT_WORKER_PORT || process.env.WEBSERVER_PORT || '4545';
27-
process.env.WEBSERVER_PORT = devPort;
28-
process.env.HLX_DEV_SERVER_HOST = `localhost:${devPort}`;
26+
process.env.HLX_DEV_SERVER_HOST = 'localhost:3000';
2927
process.env.HLX_DEV_SERVER_SCHEME = 'http';
3028

3129
let devServer;
@@ -41,7 +39,6 @@ async function run(args) {
4139
devServer = new DevelopmentServer(main);
4240
}
4341
await devServer
44-
.withPort(Number(devPort))
4542
.withHeader('x-forwarded-host', '')
4643
.init();
4744
await devServer.start();

0 commit comments

Comments
 (0)