@gallop.software/studio 2.1.6 → 2.1.7

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.
@@ -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-CUv_Vpva.js"></script>
14
+ <script type="module" crossorigin src="/assets/index-Cu_gvU_L.js"></script>
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
@@ -2345,7 +2345,11 @@ 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 script = `<script>window.__STUDIO_WORKSPACE__ = ${JSON.stringify(workspace)};</script>`;
2348
+ const devUrl = process.env.STUDIO_DEV_URL || "";
2349
+ const script = `<script>
2350
+ window.__STUDIO_WORKSPACE__ = ${JSON.stringify(workspace)};
2351
+ window.__STUDIO_DEV_URL__ = ${JSON.stringify(devUrl)};
2352
+ </script>`;
2349
2353
  html = html.replace("</head>", `${script}</head>`);
2350
2354
  res.type("html").send(html);
2351
2355
  } else {