@gallop.software/studio 2.1.7 → 2.1.8
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/client/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-Cug_vb5C.js"></script>
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -2345,10 +2345,10 @@ async function startServer(options) {
|
|
|
2345
2345
|
const htmlPath = join(clientDir, "index.html");
|
|
2346
2346
|
if (existsSync(htmlPath)) {
|
|
2347
2347
|
let html = readFileSync(htmlPath, "utf-8");
|
|
2348
|
-
const
|
|
2348
|
+
const siteUrl = process.env.NEXT_PUBLIC_PRODUCTION_URL || "";
|
|
2349
2349
|
const script = `<script>
|
|
2350
2350
|
window.__STUDIO_WORKSPACE__ = ${JSON.stringify(workspace)};
|
|
2351
|
-
window.
|
|
2351
|
+
window.__STUDIO_SITE_URL__ = ${JSON.stringify(siteUrl)};
|
|
2352
2352
|
</script>`;
|
|
2353
2353
|
html = html.replace("</head>", `${script}</head>`);
|
|
2354
2354
|
res.type("html").send(html);
|