diff --git a/packages/remix-dev/cli/commands.ts b/packages/remix-dev/cli/commands.ts index 18288211b56..200a7a81dc6 100644 --- a/packages/remix-dev/cli/commands.ts +++ b/packages/remix-dev/cli/commands.ts @@ -183,7 +183,7 @@ export async function build( host: dev.httpHost, port: dev.httpPort, }; - options.devWebsocketPort = dev.webSocketPort; + options.devWebSocketPort = dev.webSocketPort; } fse.emptyDirSync(config.assetsBuildDirectory); diff --git a/packages/remix-dev/compiler/options.ts b/packages/remix-dev/compiler/options.ts index d2f9dc979ec..165b89cbab0 100644 --- a/packages/remix-dev/compiler/options.ts +++ b/packages/remix-dev/compiler/options.ts @@ -11,5 +11,5 @@ export type Options = { host: string; port: number; }; - devWebsocketPort?: number; + devWebSocketPort?: number; }; diff --git a/packages/remix-dev/compiler/server/plugins/entry.ts b/packages/remix-dev/compiler/server/plugins/entry.ts index 76b16114d5e..3d64193e3b4 100644 --- a/packages/remix-dev/compiler/server/plugins/entry.ts +++ b/packages/remix-dev/compiler/server/plugins/entry.ts @@ -51,9 +51,9 @@ ${Object.keys(config.routes) export const publicPath = ${JSON.stringify(config.publicPath)}; export const entry = { module: entryServer }; ${ - options.devWebsocketPort + options.devWebSocketPort ? `export const dev = ${JSON.stringify({ - websocketPort: options.devWebsocketPort, + websocketPort: options.devWebSocketPort, })}` : "" } diff --git a/packages/remix-dev/devServer_unstable/index.ts b/packages/remix-dev/devServer_unstable/index.ts index 39851a16d25..75e8c7fa2c5 100644 --- a/packages/remix-dev/devServer_unstable/index.ts +++ b/packages/remix-dev/devServer_unstable/index.ts @@ -114,7 +114,7 @@ export let serve = async ( sourcemap: true, onWarning: warnOnce, devHttpOrigin: httpOrigin, - devWebsocketPort: options.webSocketPort, + devWebSocketPort: options.webSocketPort, }, }, {