Skip to content

fix(next): run eve dev server with node under bun#398

Open
zjy365 wants to merge 1 commit into
vercel:mainfrom
zjy365:codex-fix-next-bun-dev-server
Open

fix(next): run eve dev server with node under bun#398
zjy365 wants to merge 1 commit into
vercel:mainfrom
zjy365:codex-fix-next-bun-dev-server

Conversation

@zjy365

@zjy365 zjy365 commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • start the withEve sidecar dev server with Node when the host Next.js process is running under Bun
  • add regression coverage for Bun-hosted Next.js dev startup
  • add a patch changeset

Why

When a Next.js app is launched with bun --bun next dev, process.execPath points at Bun. withEve used that executable to spawn the local eve dev --no-ui --port 0 server, which let Bun runtime globals leak into the Nitro worker and caused crossws to reject the Node adapter.

Verification

  • corepack pnpm --filter eve run build:js
  • corepack pnpm --filter eve exec vitest run --config vitest.integration.config.ts src/public/next/server.integration.test.ts
  • corepack pnpm --filter eve run typecheck
  • corepack pnpm exec oxlint packages/eve/src/public/next/server.ts packages/eve/src/public/next/server.integration.test.ts
  • git diff --check

Closes #101

Signed-off-by: zjy365 <3161362058@qq.com>
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@zjy365 is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@zjy365 zjy365 marked this pull request as ready for review June 29, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant