@weaverse/next 0.1.0-alpha.14 → 0.1.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/studio-script-src.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/studio-script-src.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -1348,7 +1348,7 @@ function resolveWeaverseNextStudioScriptSrc(context, options = {}) {
|
|
|
1348
1348
|
if (!isTrustedStudioOrigin(origin, storefrontHostname)) {
|
|
1349
1349
|
return null;
|
|
1350
1350
|
}
|
|
1351
|
-
let bundle =
|
|
1351
|
+
let bundle = isPreviewMode || isRevisionPreview ? "preview.js" : "index.js";
|
|
1352
1352
|
let version = last(searchParams, "weaverseVersion");
|
|
1353
1353
|
let url = `${origin}/static/studio/next/${bundle}`;
|
|
1354
1354
|
return version ? `${url}?v=${encodeURIComponent(version)}` : url;
|