mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
fix: for open in new tab
fixed the open project in a new tab button
This commit is contained in:
commit
42d2fdbfe2
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user