Skip to content

Commit

Permalink
Merge pull request #209 from sejori/example-fixes
Browse files Browse the repository at this point in the history
fix: bun script
sejori authored Jul 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents e205467 + dcf2cc0 commit 42d927a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/bun/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import router from "../../example/preactSSR/router.ts";

router.middleware.unshift((ctx) => {
ctx.state.env = process.env
ctx.state.env = process.env;
});

Bun.serve({
port: 8080,
port: 7778,
fetch(req) {
return router.handle(req);
},
});

console.log("Bun server running with Peko router <3");

0 comments on commit 42d927a

Please sign in to comment.