Skip to content

Commit

Permalink
fix: wrangler script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Ringrose committed Jul 26, 2024
1 parent d1843d3 commit cde6932
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions scripts/bun/main.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -16,7 +15,7 @@ declare global {
}
}

router.middleware.unshift((ctx: RequestContext<{ env?: unknown }>) => {
router.middleware.unshift((ctx) => {
ctx.state.env = process.env;
});

Expand Down
2 changes: 1 addition & 1 deletion scripts/wrangler/main.ts
Original file line number Diff line number Diff line change
@@ -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<string, string>) {
Expand Down

0 comments on commit cde6932

Please sign in to comment.