-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
meta: upgrade to next.js 16 #8218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
93b2097
7a3a331
74294f2
86b9ab7
16c6f86
a2a0132
0f583df
1436185
da1f03f
f14629a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ package-lock.json | |
| # Next.js Build Output | ||
| .next | ||
| build | ||
| next-env.d.ts | ||
|
|
||
| # Test Runner | ||
| junit.xml | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> | ||
| /// <reference types="next/navigation-types/compat/navigation" /> | ||
| /// <reference path="./.next/types/routes.d.ts" /> | ||
| import "./.next/types/routes.d.ts"; | ||
avivkeller marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| // NOTE: This file should not be edited | ||
| // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,8 @@ import { redirects, rewrites } from './next.rewrites.mjs'; | |
|
|
||
| /** @type {import('next').NextConfig} */ | ||
| const nextConfig = { | ||
| allowedDevOrigins: ['10.1.1.232'], | ||
| // Full Support of React 18 SSR and Streaming | ||
| reactCompiler: true, | ||
ovflowd marked this conversation as resolved.
Show resolved
Hide resolved
avivkeller marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // We don't want to redirect with trailing slashes | ||
| skipTrailingSlashRedirect: true, | ||
| // We allow the BASE_PATH to be overridden in case that the Website | ||
|
|
@@ -50,10 +51,7 @@ const nextConfig = { | |
| // Enable statically typed links | ||
| // @see https://nextjs.org/docs/app/api-reference/config/typescript#statically-typed-links | ||
| typedRoutes: true, | ||
| // We don't want to run ESLint Checking on Production Builds | ||
| // as we already check it on the CI within each Pull Request | ||
| // we also configure ESLint to run its lint checking on all files | ||
| eslint: { ignoreDuringBuilds: true }, | ||
| // Experimental Flags | ||
|
||
| experimental: { | ||
| useCache: true, | ||
| // Ensure that server-side code is also minified | ||
|
|
@@ -80,6 +78,8 @@ const nextConfig = { | |
| 'tailwindcss', | ||
| 'shiki', | ||
| ], | ||
| // Faster Development Servers with Turbopack | ||
| turbopackFileSystemCacheForDev: true, | ||
| }, | ||
| // If we're building for the Cloudflare deployment we want to set | ||
| // an appropriate deploymentId (needed for skew protection) | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,17 +3,17 @@ | |||||
| "type": "module", | ||||||
| "scripts": { | ||||||
| "prebuild": "node --run build:blog-data", | ||||||
| "build": "node --run build:default -- --turbo", | ||||||
| "build": "node --run build:default -- --turbopack", | ||||||
avivkeller marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| "build:blog-data": "cross-env NODE_NO_WARNINGS=1 node ./scripts/blog-data/generate.mjs", | ||||||
| "build:blog-data:watch": "node --watch --watch-path=pages/en/blog ./scripts/blog-data/generate.mjs", | ||||||
| "build:default": "cross-env NODE_NO_WARNINGS=1 next build", | ||||||
| "cloudflare:build:worker": "OPEN_NEXT_CLOUDFLARE=true opennextjs-cloudflare build", | ||||||
| "cloudflare:deploy": "opennextjs-cloudflare deploy", | ||||||
| "cloudflare:preview": "wrangler dev", | ||||||
| "predeploy": "node --run build:blog-data", | ||||||
| "deploy": "cross-env NEXT_PUBLIC_STATIC_EXPORT=true node --run build:default -- --turbo", | ||||||
| "deploy": "cross-env NEXT_PUBLIC_STATIC_EXPORT=true node --run build:default -- --turbopack", | ||||||
| "predev": "node --run build:blog-data", | ||||||
| "dev": "cross-env NODE_NO_WARNINGS=1 next dev --turbo", | ||||||
| "dev": "cross-env NODE_NO_WARNINGS=1 next dev --turbopack", | ||||||
| "lint": "node --run lint:js && node --run lint:css && node --run lint:md", | ||||||
| "lint:fix": "node --run lint:js:fix && node --run lint:css:fix && node --run lint:md:fix", | ||||||
| "lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache", | ||||||
|
|
@@ -52,16 +52,16 @@ | |||||
| "@types/react": "catalog:", | ||||||
| "@vcarl/remark-headings": "~0.1.0", | ||||||
| "@vercel/analytics": "~1.5.0", | ||||||
| "@vercel/otel": "~2.0.1", | ||||||
| "@vercel/otel": "~2.1.0", | ||||||
| "@vercel/speed-insights": "~1.2.0", | ||||||
| "classnames": "catalog:", | ||||||
| "cross-env": "catalog:", | ||||||
| "feed": "~5.1.0", | ||||||
| "github-slugger": "~2.0.0", | ||||||
| "gray-matter": "~4.0.3", | ||||||
| "mdast-util-to-string": "^4.0.0", | ||||||
| "next": "15.5.4", | ||||||
| "next-intl": "~4.3.11", | ||||||
| "next": "16.0.3", | ||||||
|
||||||
| "next": "16.0.3", | |
| "next": "16.0.0", |
ovflowd marked this conversation as resolved.
Show resolved
Hide resolved
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -351,6 +351,14 @@ | |||||||||||||||||
| { | ||||||||||||||||||
| "source": "/:locale/download/package-manager/all", | ||||||||||||||||||
| "destination": "/:locale/download/archive/current" | ||||||||||||||||||
| }, | ||||||||||||||||||
| { | ||||||||||||||||||
| "source": "/404", | ||||||||||||||||||
| "destination": "/" | ||||||||||||||||||
| }, | ||||||||||||||||||
| { | ||||||||||||||||||
| "source": "/500", | ||||||||||||||||||
| "destination": "/" | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+355
to
362
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not a huge fan of having redirects on these error pages.
Comment on lines
+355
to
362
|
||||||||||||||||||
| { | |
| "source": "/404", | |
| "destination": "/" | |
| }, | |
| { | |
| "source": "/500", | |
| "destination": "/" | |
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |||||
| "moduleResolution": "Bundler", | ||||||
| "resolveJsonModule": true, | ||||||
| "isolatedModules": true, | ||||||
| "jsx": "preserve", | ||||||
| "jsx": "react-jsx", | ||||||
|
||||||
| "jsx": "react-jsx", | |
| "jsx": "preserve", |
Uh oh!
There was an error while loading. Please reload this page.