Skip to content

Commit 21772f9

Browse files
faceyspaceyCompuIves
authored andcommitted
fix($urlGenerator): use localhost:3000 if LOCAL_SERVER (codesandbox#48)
1 parent 6c45f90 commit 21772f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/utils/url-generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const buildEncodedUri = (strings: Array<string>, ...values: Array<string>) =>
1010
export const host = () => {
1111
return process.env.NODE_ENV === 'production'
1212
? 'codesandbox.io'
13-
: 'codesandbox.dev';
13+
: (process.env.LOCAL_SERVER ? 'localhost:3000' : 'codesandbox.dev');
1414
};
1515

1616
export const protocolAndHost = () => `${location.protocol}//${host()}`;

0 commit comments

Comments
 (0)