mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-22 21:02:03 +00:00
build: enable frontend source maps
Currently, frontend stack traces are unhelpful in production builds, because they only include minified code. By enabling source maps for production builds, we enhance debuggability and error-reports. Ref: https://nextjs.org/docs/advanced-features/source-maps Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
45638b7456
commit
fe3ed17610
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ const rawNextConfig = {
|
|||
swcMinify: false, //Otherwise emoji picker is minified incorrectly
|
||||
experimental: {
|
||||
outputFileTracingRoot: path.join(__dirname, '../')
|
||||
}
|
||||
},
|
||||
productionBrowserSourceMaps: true
|
||||
}
|
||||
const completeNextConfig = withBundleAnalyzer(rawNextConfig)
|
||||
|
||||
|
|
Loading…
Reference in a new issue