fix: for open in new tab

fixed the open project in a new tab button
This commit is contained in:
Dustin Loring 2025-01-16 13:40:25 -05:00 committed by GitHub
commit 42d2fdbfe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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