Skip to content

Commit 674cda5

Browse files
committed
Remove duplicate preview-secret logic
1 parent ae15fee commit 674cda5

File tree

2 files changed

+4
-31
lines changed

2 files changed

+4
-31
lines changed

packages/app/src/sandbox/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ import { generateFileFromSandbox } from '@codesandbox/common/lib/templates/confi
1010
import { getSandboxId } from '@codesandbox/common/lib/utils/url-generator';
1111
import setupConsole from 'sandbox-hooks/console';
1212
import setupHistoryListeners from 'sandbox-hooks/url-listeners';
13-
import { listenForPreviewSecret } from 'sandbox-hooks/preview-secret';
13+
import {
14+
listenForPreviewSecret,
15+
getPreviewSecret,
16+
} from 'sandbox-hooks/preview-secret';
1417
import { show404 } from 'sandbox-hooks/not-found-screen';
1518

1619
import compile, { getCurrentManager } from './compile';
17-
import { getPreviewSecret } from './utils/preview-secret';
1820

1921
// Call this before importing React (or any other packages that might import React).
2022
initialize(window);

packages/app/src/sandbox/utils/preview-secret.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)