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:38:04 -05:00
parent c659b21941
commit 49f75ae2ff
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); console.log('Active preview baseUrl:', activePreview.baseUrl);
// Extract the preview ID from the WebContainer URL // Extract the preview ID from the WebContainer URL
const match = activePreview.baseUrl.match( const match = activePreview.baseUrl.match(
/^https?:\/\/([^.]+)\.local-(?:corp|credentialless)\.webcontainer-api\.io/, /^https?:\/\/([^.]+)\.local-credentialless\.webcontainer-api\.io/,
); );
console.log('URL match:', match); console.log('URL match:', match);

View File

@ -59,7 +59,7 @@ export default function WebContainerPreview() {
}; };
// Construct the WebContainer preview URL // 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); setPreviewUrl(url);
// Set the iframe src // Set the iframe src