Skip to content

Commit

Permalink
Trying out production source map server side
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed Nov 11, 2024
1 parent 47e9519 commit c35ed34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
productionBrowserSourceMaps: true,
images: {
remotePatterns: [
{
Expand All @@ -20,6 +21,9 @@ const nextConfig = {
},
],
})
if (isServer) {
config.devtool = "source-map"
}
return config
},
}
Expand Down

0 comments on commit c35ed34

Please sign in to comment.