@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 CHANGED
@@ -8389,15 +8389,13 @@ async function serveUI(pathname, env) {
8389
8389
  // Create a proper request for the asset path
8390
8390
  // Use a dummy origin since we only care about the path
8391
8391
  // Re-add mount point since pathname was stripped by router
8392
- // Handle root mountPoint "/" specially to avoid double slashes
8393
- const mountPrefix = MOUNT_POINT === "/" ? "" : MOUNT_POINT;
8394
- const assetUrl = \`http://localhost\${mountPrefix}\${pathname}\`;
8392
+ const assetUrl = \`http://localhost\${MOUNT_POINT}\${pathname}\`;
8395
8393
  let response = await env.ASSETS.fetch(assetUrl);
8396
8394
 
8397
8395
  // If not found, fall back to index.html for SPA routing
8398
8396
  const isIndexHtml = response.status === 404 || pathname === "/" || !pathname.includes(".");
8399
8397
  if (isIndexHtml) {
8400
- response = await env.ASSETS.fetch(\`http://localhost\${mountPrefix}/index.html\`);
8398
+ response = await env.ASSETS.fetch(\`http://localhost\${MOUNT_POINT}/index.html\`);
8401
8399
 
8402
8400
  // Transform HTML to use configured mount point
8403
8401
  if (response.status === 200) {