Skip to content

Commit 322ea09

Browse files
author
Ives van Hoorne
committed
Add development url
1 parent 183ab44 commit 322ea09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/sandpack/src/manager/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ export interface ISandboxInfo {
5656
template?: string;
5757
}
5858

59-
const BUNDLER_URL = `https://sandpack-${version}.codesandbox.io`;
59+
const BUNDLER_URL =
60+
process.env.CODESANDBOX_ENV === 'development'
61+
? 'http://localhost:3001'
62+
: `https://sandpack-${version}.codesandbox.io`;
6063

6164
export default class PreviewManager {
6265
selector: string | undefined;

0 commit comments

Comments
 (0)