@standardagents/builder 0.11.0-next.80cee2e → 0.11.0-next.a433660
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 +2 -4
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +2 -4
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
package/dist/plugin.js
CHANGED
|
@@ -2308,15 +2308,13 @@ async function serveUI(pathname, env) {
|
|
|
2308
2308
|
// Create a proper request for the asset path
|
|
2309
2309
|
// Use a dummy origin since we only care about the path
|
|
2310
2310
|
// Re-add mount point since pathname was stripped by router
|
|
2311
|
-
|
|
2312
|
-
const mountPrefix = MOUNT_POINT === "/" ? "" : MOUNT_POINT;
|
|
2313
|
-
const assetUrl = \`http://localhost\${mountPrefix}\${pathname}\`;
|
|
2311
|
+
const assetUrl = \`http://localhost\${MOUNT_POINT}\${pathname}\`;
|
|
2314
2312
|
let response = await env.ASSETS.fetch(assetUrl);
|
|
2315
2313
|
|
|
2316
2314
|
// If not found, fall back to index.html for SPA routing
|
|
2317
2315
|
const isIndexHtml = response.status === 404 || pathname === "/" || !pathname.includes(".");
|
|
2318
2316
|
if (isIndexHtml) {
|
|
2319
|
-
response = await env.ASSETS.fetch(\`http://localhost\${
|
|
2317
|
+
response = await env.ASSETS.fetch(\`http://localhost\${MOUNT_POINT}/index.html\`);
|
|
2320
2318
|
|
|
2321
2319
|
// Transform HTML to use configured mount point
|
|
2322
2320
|
if (response.status === 200) {
|