From 548976953d39663fe5a94dafec5415291bc603cc Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Wed, 21 Feb 2024 11:27:18 +0100 Subject: [PATCH] fix: Reverse logic to explicitly just check for IS_PRODUCTION --- next.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index d3ceda722b220..524d1cb06acac 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,6 @@ const createMDX = require('@next/mdx'); const remarkPrism = require('remark-prism'); -const isProd = process.env.NODE_ENV === 'production' && !process.env.IS_PREVIEW; - /** @type {import('next').NextConfig} */ const nextConfig = { headers() { @@ -13,7 +11,7 @@ const nextConfig = { }, ]; }, - assetPrefix: isProd ? 'https://docs.sentry.io' : undefined, + assetPrefix: process.env.IS_PRODUCTION ? 'https://docs.sentry.io' : undefined, pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],