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:
parent
c659b21941
commit
49f75ae2ff
@ -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);
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user