Skip to content

Commit

Permalink
chore(dev): fix spelling for 'WebSocket'
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed May 5, 2023
1 parent 91b8988 commit ba12063
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/remix-dev/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-dev/compiler/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export type Options = {
host: string;
port: number;
};
devWebsocketPort?: number;
devWebSocketPort?: number;
};
4 changes: 2 additions & 2 deletions packages/remix-dev/compiler/server/plugins/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})}`
: ""
}
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-dev/devServer_unstable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export let serve = async (
sourcemap: true,
onWarning: warnOnce,
devHttpOrigin: httpOrigin,
devWebsocketPort: options.webSocketPort,
devWebSocketPort: options.webSocketPort,
},
},
{
Expand Down

0 comments on commit ba12063

Please sign in to comment.