Skip to content

Commit 8ff12e8

Browse files
authored
Merge pull request codesandbox#2155 from baremetalfreak/local-development-fix
Fix local development build
2 parents d02b9bb + c7b2b55 commit 8ff12e8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/app/scripts/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function addMiddleware(devServer, index) {
229229
devServer.use(
230230
'/api',
231231
proxy({
232-
target: 'https://codesandbox.stream',
232+
target: 'https://codesandbox.io',
233233
changeOrigin: true,
234234
})
235235
);

packages/common/src/components/Preview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type State = {
6161
const getSSEUrl = (sandbox?: Sandbox, initialPath: string = '') =>
6262
`https://${sandbox ? `${sandbox.id}.` : ''}sse.${
6363
process.env.NODE_ENV === 'development' || process.env.STAGING
64-
? 'codesandbox.stream'
64+
? 'codesandbox.io'
6565
: host()
6666
}${initialPath}`;
6767

packages/executors/src/serverExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class ServerExecutor implements IExecutor {
7272
}
7373

7474
private initializeSocket() {
75-
return io(`https://sse.codesandbox.stream`, {
75+
return io(`https://sse.codesandbox.io`, {
7676
autoConnect: false,
7777
transports: ['websocket', 'polling'],
7878
});

0 commit comments

Comments
 (0)