[READ-ONLY] Mirror of https://github.com/bombshell-dev/docs. bomb.sh/docs
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(examples): add auth (#34)

authored by

Nate Moore and committed by
GitHub
(Apr 4, 2026, 11:10 PM EDT) 58617c13 7c4c46c8

+6 -2
+6 -2
src/components/WebContainer/WebContainer.astro
··· 14 14 15 15 <script> 16 16 import type { Terminal } from "@xterm/xterm"; 17 - import { WebContainer } from "@webcontainer/api"; 17 + import { WebContainer, auth } from "@webcontainer/api"; 18 18 const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); 19 19 let host: WebContainer; 20 20 let bootError: string | null = null; 21 21 22 + auth.init({ 23 + clientId: 'wc_api_natemoo_re_679fe059f5f36e18deed13fb4a9c7b4f', 24 + scope: '', 25 + }); 26 + 22 27 try { 23 - (globalThis as any).WEBCONTAINER_API_IFRAME_URL = 'https://w.stackblitz.io'; 24 28 host = await WebContainer.boot({ coep: 'require-corp', workdirName: 'demo' }); 25 29 const base = (import.meta.env.BASE_URL || '/').replace(/\/?$/, ''); 26 30 const snapshotUrl = `${base}/snapshot`;