From dcf2cc0d8247e42ec11bd0d8c7ccedf67c4167d0 Mon Sep 17 00:00:00 2001 From: Sebastien Ringrose Date: Mon, 22 Jul 2024 16:08:04 +0100 Subject: [PATCH] fix: bun script --- scripts/bun/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/bun/main.ts b/scripts/bun/main.ts index dc941187..941e0ecd 100644 --- a/scripts/bun/main.ts +++ b/scripts/bun/main.ts @@ -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");