Skip to content

Commit

Permalink
chore: update u-m to provide req when required
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Oct 10, 2024
1 parent d63e144 commit 629ba64
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions packages/vike-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@
"devDependencies": {
"@brillout/release-me": "^0.4.0",
"@types/node": "^20.14.15",
"@universal-middleware/core": "^0.2.13",
"@universal-middleware/core": "^0.2.13 ",
"elysia": "^1.1.6",
"fastify": "^4.28.1",
"h3": "^1.12.0",
"hono": "^4.6.3",
"tsup": "^8.3.0",
"typescript": "^5.5.4",
"universal-middleware": "^0.3.7",
"universal-middleware": "^0.3.8",
"vike": "^0.4.198",
"vite": "^5.4.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vike-node/src/runtime/vike-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function renderPageWeb<PlatformRequest>({
}

export const renderPageUniversal = ((options?) => async (request, context, runtime: any) => {
const nodeReq: IncomingMessage | undefined = runtime.req ?? runtime.env?.incoming
const nodeReq: IncomingMessage | undefined = runtime.req
let staticConfig: false | { root: string; cache: boolean } = false
let shouldCache = false
const compressionType = options?.compress ?? !isVercel()
Expand Down
48 changes: 24 additions & 24 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 629ba64

Please sign in to comment.