mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 00:09:23 +02:00
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#969
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/942
Author: @Divkix
Created: 4/28/2026
Status: ✅ Merged
Merged: 4/28/2026
Merged by: @james-elicx
Base:
main← Head:fix/724-standalone-e2e📝 Commits (2)
2d410b2fix: resolve symlink paths in standalone BFS package copy (#724)fa7bc1ffix: address review feedback📊 Changes
12 files changed (+175 additions, -3 deletions)
View changed files
📝
.github/workflows/ci.yml(+1 -0)📝
packages/vinext/src/build/standalone.ts(+4 -3)📝
playwright.config.ts(+14 -0)📝
pnpm-lock.yaml(+19 -0)➕
tests/e2e/standalone-output/basic.spec.ts(+65 -0)➕
tests/fixtures/standalone-output/next.config.mjs(+6 -0)➕
tests/fixtures/standalone-output/package.json(+14 -0)➕
tests/fixtures/standalone-output/pages/about.tsx(+15 -0)➕
tests/fixtures/standalone-output/pages/api/hello.ts(+5 -0)➕
tests/fixtures/standalone-output/pages/index.tsx(+15 -0)➕
tests/fixtures/standalone-output/tsconfig.json(+11 -0)➕
tests/fixtures/standalone-output/vite.config.ts(+6 -0)📄 Description
Fixes #724
Summary
resolvePackageJsonPathfinds a package via the lookup-paths fallback, the returned path is a symlink (e.g., under a hoistednode_modules/).createRequire()on this symlink path cannot resolve transitive dependencies because Node walks up from the symlink ancestor directories.fs.realpathSync()on the resolvedpackage.jsonpath before using it forcreateRequire()andreadPackageJson().Test plan
tests/fixtures/standalone-output/withoutput: "standalone"configstandalone-outputtoplaywright.config.tsthat builds the fixture and startsnode dist/standalone/server.jstests/e2e/standalone-output/basic.spec.tscovering index page, about page, navigation via Link, browser back button, API route, 404 handling, and server header🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.