From c35ed34eb7cb3c165b70c8891206b610e131bc9d Mon Sep 17 00:00:00 2001 From: Mikkel Jakobsen Date: Mon, 11 Nov 2024 20:59:25 +0100 Subject: [PATCH] Trying out production source map server side --- next.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 0adf92b6..d78d7f7a 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,5 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + productionBrowserSourceMaps: true, images: { remotePatterns: [ { @@ -20,6 +21,9 @@ const nextConfig = { }, ], }) + if (isServer) { + config.devtool = "source-map" + } return config }, }