Skip to content

Commit ace2f9a

Browse files
committed
Revert "fix: Reverse logic to explicitly just check for IS_PRODUCTION (#9191)"
This reverts commit c4208c4.
1 parent 20d8bbd commit ace2f9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

next.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const createMDX = require('@next/mdx');
22
const remarkPrism = require('remark-prism');
33

4+
const isProd = process.env.NODE_ENV === 'production' && !process.env.IS_PREVIEW;
5+
46
/** @type {import('next').NextConfig} */
57
const nextConfig = {
68
headers() {
@@ -11,7 +13,7 @@ const nextConfig = {
1113
},
1214
];
1315
},
14-
assetPrefix: process.env.IS_PRODUCTION ? 'https://docs.sentry.io' : undefined,
16+
assetPrefix: isProd ? 'https://docs.sentry.io' : undefined,
1517

1618
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
1719

0 commit comments

Comments
 (0)