Skip to content

Commit 61f28c2

Browse files
author
Ives van Hoorne
committed
Add staging check
1 parent 533e5e8 commit 61f28c2

File tree

1 file changed

+1
-0
lines changed
  • packages/codesandbox-api/src/dispatcher

1 file changed

+1
-0
lines changed

packages/codesandbox-api/src/dispatcher/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ function eventListener(e: MessageEvent) {
7575
data.codesandbox &&
7676
(e.origin.endsWith(`.${origin}`) ||
7777
e.origin.endsWith(`/${origin}`) ||
78+
process.env.STAGING ||
7879
process.env.NODE_ENV !== 'production')
7980
) {
8081
notifyListeners(data, e.source);

0 commit comments

Comments
 (0)