From 37600c1641f26aeb7ddbc079195fb196e5e108cc Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 29 Jan 2026 21:49:46 -0500 Subject: [PATCH] fix(demo): set require-corp --- src/components/WebContainer/WebContainer.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WebContainer/WebContainer.astro b/src/components/WebContainer/WebContainer.astro index 55fbe1d..4498def 100644 --- a/src/components/WebContainer/WebContainer.astro +++ b/src/components/WebContainer/WebContainer.astro @@ -18,7 +18,7 @@ const { name } = Astro.props; const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); let host: WebContainer; - host = await WebContainer.boot({ workdirName: 'demo' }); + host = await WebContainer.boot({ coep: 'require-corp', workdirName: 'demo' }); const snapshotResponse = await fetch(`/docs/snapshot`); const snapshot = await snapshotResponse.arrayBuffer(); await host.mount(snapshot, { mountPoint: "/" }); -- 2.51.2