diff --git a/app/components/workbench/Preview.tsx b/app/components/workbench/Preview.tsx index 92f45d6..0be0207 100644 --- a/app/components/workbench/Preview.tsx +++ b/app/components/workbench/Preview.tsx @@ -86,7 +86,7 @@ export const Preview = memo(() => { console.log('Active preview baseUrl:', activePreview.baseUrl); // Extract the preview ID from the WebContainer URL const match = activePreview.baseUrl.match( - /^https?:\/\/([^.]+)\.local-(?:corp|credentialless)\.webcontainer-api\.io/, + /^https?:\/\/([^.]+)\.local-credentialless\.webcontainer-api\.io/, ); console.log('URL match:', match); diff --git a/app/routes/webcontainer.preview.$id.tsx b/app/routes/webcontainer.preview.$id.tsx index e30bb9b..a5f00b4 100644 --- a/app/routes/webcontainer.preview.$id.tsx +++ b/app/routes/webcontainer.preview.$id.tsx @@ -59,7 +59,7 @@ export default function WebContainerPreview() { }; // Construct the WebContainer preview URL - const url = `https://${previewId}.local-corp.webcontainer-api.io`; + const url = `https://${previewId}.local-credentialless.webcontainer-api.io`; setPreviewUrl(url); // Set the iframe src