You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: split site into site/vercel/cloudflare apps
Separates platform concerns so Next.js upgrades and Vercel-specific deps
are no longer gated on OpenNext's compatibility window (and vice versa),
and so each deployment ships only the dependencies it actually uses.
- apps/site: platform-neutral. No @vercel/*, no @opennextjs/cloudflare,
no VERCEL_ENV or 'Cloudflare' in global runtime forks.
- apps/vercel: owns Analytics, SpeedInsights, OTel instrumentation,
vercel.json.
- apps/cloudflare: owns OpenNext, Wrangler, image loader, worker
entrypoint (Sentry), version_metadata binding.
Host apps reach site source via git-tracked symlinks, plus one real
parallel-route slot per host (app/[locale]/@analytics/default.tsx) for
platform-specific layout injection. MDX engine choice moved from a
runtime 'Cloudflare' in global check to MDX_WASM / MDX_TWOSLASH build
env vars. middleware.ts renamed to proxy.ts on the Vercel/standalone
side; Cloudflare keeps middleware.ts (OpenNext requirement) via symlink.
Commands: pnpm build/dev/start still target site. Platform commands are
now pnpm build:vercel, build:cloudflare, dev:vercel, dev:cloudflare,
cloudflare:preview, cloudflare:deploy. Vercel project Root Directory
needs to move to apps/vercel in the Vercel dashboard when this ships.
All three apps pass lint:types independently.
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,5 +28,5 @@ You can check the items by adding an `x` between the brackets, like this: `[x]`
28
28
-[ ] I have read the [Contributing Guidelines](https://github.com/nodejs/nodejs.org/blob/main/CONTRIBUTING.md) and made commit messages that follow the guideline.
29
29
-[ ] I have run `pnpm format` to ensure the code follows the style guide.
30
30
-[ ] I have run `pnpm test` to check if all tests are passing.
31
-
-[ ] I have run `pnpm build` to check if the website builds without errors.
31
+
-[ ] I have run `pnpm build` to check if the website builds without errors. (Optional: `pnpm build:vercel` / `pnpm build:cloudflare` for deployment-target-specific builds.)
32
32
-[ ] I've covered new added functionality with unit tests if necessary.
0 commit comments