Skip to content

Commit

Permalink
fix: Bun integration env.get is undefined (QwikDev#5601)
Browse files Browse the repository at this point in the history
  • Loading branch information
phyrog authored Dec 18, 2023
1 parent 3f62f77 commit 4d4b4d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/qwik-city/middleware/bun/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export function createQwikCity(opts: QwikCityBunOptions) {
mode: 'server',
locale: undefined,
url,
env: Bun.env,
env: {
get(key) {
return Bun.env[key];
},
},
request,
getWritableStream: (status, headers, cookies, resolve) => {
const { readable, writable } = new TransformStream<Uint8Array>();
Expand Down

0 comments on commit 4d4b4d4

Please sign in to comment.