Skip to content

Commit d6d7b05

Browse files
authored
fix: Server should start at localhost outside docker (#526)
1 parent 6bbf620 commit d6d7b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const {
3636
export const DEFAULT_CONFIG: SWACLIConfig = {
3737
// @public
3838
port: parseInt(SWA_CLI_PORT || "4280", 10),
39-
host: SWA_CLI_HOST || isRunningInDocker() ? "0.0.0.0" : "localhost",
39+
host: SWA_CLI_HOST || (isRunningInDocker() ? "0.0.0.0" : "localhost"),
4040
apiPort: parseInt(SWA_CLI_API_PORT || "7071", 10),
4141
appLocation: SWA_CLI_APP_LOCATION || `.`,
4242
apiLocation: SWA_CLI_API_LOCATION ? SWA_CLI_API_LOCATION : undefined,

0 commit comments

Comments
 (0)