diff --git a/app/lib/webcontainer/index.ts b/app/lib/webcontainer/index.ts index 38bb27f..7af2132 100644 --- a/app/lib/webcontainer/index.ts +++ b/app/lib/webcontainer/index.ts @@ -22,7 +22,11 @@ if (!import.meta.env.SSR) { import.meta.hot?.data.webcontainer ?? Promise.resolve() .then(() => { - return WebContainer.boot({ workdirName: WORK_DIR_NAME }); + return WebContainer.boot({ + coep: 'credentialless', + workdirName: WORK_DIR_NAME, + forwardPreviewErrors: true, // Enable error forwarding from iframes + }); }) .then((webcontainer) => { webcontainerContext.loaded = true;