mirror of
https://github.com/suitenumerique/docs.git
synced 2026-04-26 01:25:05 +02:00
⬆️(frontend) upgrade Next.js to v16
Upgrade Next.js to v16, which includes Turbopack support by default. It improves dev and build performance considerably.
This commit is contained in:
@@ -21,6 +21,17 @@ const nextConfig = {
|
||||
env: {
|
||||
NEXT_PUBLIC_BUILD_ID: buildId,
|
||||
},
|
||||
/**
|
||||
* In dev mode, Next.js doesn't use Webpack, but Turbopack.
|
||||
*/
|
||||
turbopack: {
|
||||
rules: {
|
||||
'*.svg': {
|
||||
loaders: ['@svgr/webpack'],
|
||||
as: '*.js',
|
||||
},
|
||||
},
|
||||
},
|
||||
webpack(config, { isServer }) {
|
||||
// Grab the existing rule that handles SVG imports
|
||||
const fileLoaderRule = config.module.rules.find((rule) =>
|
||||
|
||||
Reference in New Issue
Block a user