diff --git a/scripts/bun/main.ts b/scripts/bun/main.ts index 2831aeae..851f9e0b 100644 --- a/scripts/bun/main.ts +++ b/scripts/bun/main.ts @@ -1,5 +1,4 @@ -import { RequestContext } from "../../mod.ts"; -import router from "../../example/preactSSR/router.ts"; +import router from "../../example/reactSSR/router.ts"; declare global { interface Process { @@ -16,7 +15,7 @@ declare global { } } -router.middleware.unshift((ctx: RequestContext<{ env?: unknown }>) => { +router.middleware.unshift((ctx) => { ctx.state.env = process.env; }); diff --git a/scripts/wrangler/main.ts b/scripts/wrangler/main.ts index 0b2d8751..bbd51901 100644 --- a/scripts/wrangler/main.ts +++ b/scripts/wrangler/main.ts @@ -1,4 +1,4 @@ -import router from "../../example/preactSSR/router.ts"; +import router from "../../example/reactSSR/router.ts"; export default { fetch(request: Request, env: Record) {