fix(web): remove turbopack config entirely (prod build)
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-06 00:48:45 +01:00
parent 8fa2bb5cd2
commit 5c4cb2cf84

View File

@@ -82,22 +82,6 @@ const config: NextConfig = {
"better-sqlite3", "better-sqlite3",
"@mapbox/node-pre-gyp", "@mapbox/node-pre-gyp",
], ],
// turbopack config moved to dev-only — Next.js 16.0.10 doesn't
// support turbopack for production builds (needs >=16.1.0).
// SVG loading via @svgr/webpack works via the webpack config below.
...(process.env.NODE_ENV !== "production"
? {
turbopack: {
rules: {
"*.svg": {
loaders: ["@svgr/webpack"],
as: "*.js",
},
},
},
}
: {}),
images: { images: {
remotePatterns: [ remotePatterns: [
{ {