mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +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#770
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/686
Author: @raed04
Created: 3/25/2026
Status: ✅ Merged
Merged: 3/28/2026
Merged by: @james-elicx
Base:
main← Head:feat/issue-564-static-export-e2e📝 Commits (2)
7bd8a0atest: add static export E2E tests (#564)eafaebaUpdate tests/e2e/static-export/serve-static.mjs📊 Changes
5 files changed (+309 additions, -0 deletions)
View changed files
📝
.github/workflows/ci.yml(+1 -0)📝
playwright.config.ts(+15 -0)➕
tests/e2e/static-export/app-router.spec.ts(+84 -0)➕
tests/e2e/static-export/pages-router.spec.ts(+66 -0)➕
tests/e2e/static-export/serve-static.mjs(+143 -0)📄 Description
Summary
output: "export"static builds covering both App Router and Pages Routerserve-static.mjs) with path traversal protection, proper error handling, and startup validationstatic-exportproject inplaywright.config.tsand the CI matrixDetails
New files
tests/e2e/static-export/app-router.spec.ts— 10 tests covering home, about, blog slugs, navigation, metadata, and 404 handlingtests/e2e/static-export/pages-router.spec.ts— 7 tests covering Pages Router pages,getStaticProps/getStaticPathsdata,__NEXT_DATA__verification, and 404 for non-pre-rendered routestests/e2e/static-export/serve-static.mjs— Zero-dependency static file server with:server.on("error")handler for EADDRINUSEModified files
playwright.config.ts— Newstatic-exportproject entry (port 4180, 60s timeout).github/workflows/ci.yml— Addstatic-exportto E2E matrixTest plan
vp check(formatting + types) passes🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.