Closed
Description
I'm using React Router as a...
framework
Reproduction
Go to https://vercel-hono-rr7.vercel.app/ and open the console.
The context output does not come from the custom server.
Code of the reproduction: https://github.com/depsimon/vercel-hono-rr7/blob/main/vite.config.ts
System Info
I don't think it's relevant as it only occurs in Vercel (and perhaps other platforms).
Local info:
System:
OS: macOS 15.3.1
CPU: (10) arm64 Apple M1 Max
Memory: 1.19 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.11.0 - ~/.volta/tools/image/node/22.11.0/bin/node
Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
npm: 10.9.0 - ~/.volta/tools/image/node/22.11.0/bin/npm
pnpm: 8.15.5 - ~/.volta/tools/image/pnpm/8.15.5/bin/pnpm
bun: 1.2.3 - ~/.bun/bin/bun
Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 133.0.6943.54
Edge: 120.0.2210.144
Safari: 18.3
npmPackages:
@react-router/dev: ^7.2.0 => 7.2.0
@react-router/node: ^7.2.0 => 7.2.0
@react-router/serve: ^7.2.0 => 7.2.0
react-router: ^7.2.0 => 7.2.0
vite: ^5.4.11 => 5.4.14
Used Package Manager
npm
Expected Behavior
It should use the custom server when specified and return the VALUE_FROM_HONO
specified in the server's context.
Actual Behavior
The custom server input is ignored and the default server is used.
Related: vercel/vercel#13093