Skip to content

Commit

Permalink
fix: Reverse logic to explicitly just check for IS_PRODUCTION
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Feb 21, 2024
1 parent fbcc369 commit 5489769
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -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() {
Expand All @@ -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'],

Expand Down

0 comments on commit 5489769

Please sign in to comment.