fixing line numbers on error traces in development (#2413)

Co-authored-by: porygone-z <porygone-z@kali>
This commit is contained in:
pory 2025-08-10 22:02:23 +02:00 committed by GitHub
parent 21a9696ea0
commit d9d968f0fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,8 @@ module.exports = withPlausibleProxy()({
}, },
compress: false, compress: false,
experimental: { experimental: {
scrollRestoration: true scrollRestoration: true,
serverSourceMaps: true
}, },
reactStrictMode: true, reactStrictMode: true,
productionBrowserSourceMaps: true, productionBrowserSourceMaps: true,

View File

@ -3,7 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "NODE_OPTIONS='--trace-warnings' next dev", "dev": "NODE_OPTIONS='--trace-warnings --enable-source-maps' next dev",
"build": "next build", "build": "next build",
"migrate": "prisma migrate deploy", "migrate": "prisma migrate deploy",
"start": "NODE_OPTIONS='--trace-warnings --max-old-space-size=4096 --max-semi-space-size=128' next start -p $PORT --keepAliveTimeout 120000", "start": "NODE_OPTIONS='--trace-warnings --max-old-space-size=4096 --max-semi-space-size=128' next start -p $PORT --keepAliveTimeout 120000",