We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1ada6c commit 083bcf6Copy full SHA for 083bcf6
packages/sandpack/src/manager/index.ts
@@ -57,6 +57,8 @@ export interface ISandboxInfo {
57
* @type {string}
58
*/
59
template?: string;
60
+
61
+ showOpenInCodeSandbox?: boolean;
62
}
63
64
const BUNDLER_URL =
@@ -170,7 +172,10 @@ export default class PreviewManager {
170
172
template:
171
173
this.sandboxInfo.template ||
174
getTemplate(packageJSON, normalizedModules),
- showOpenInCodeSandbox: true,
175
+ showOpenInCodeSandbox:
176
+ this.sandboxInfo.showOpenInCodeSandbox == null
177
+ ? true
178
+ : this.sandboxInfo.showOpenInCodeSandbox,
179
skipEval: this.options.skipEval || false,
180
});
181
0 commit comments