Skip to content

Commit 1a5cf11

Browse files
authored
fix (#7501)
1 parent 6b4a534 commit 1a5cf11

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

apps/docs/next.config.mjs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,26 @@ const withMDX = createMDX();
66
/** @type {import('next').NextConfig} */
77
const config = {
88
basePath: process.env.NODE_ENV === 'production' ? '/docs' : '', // if serving under /docs path
9+
assetPrefix: process.env.NODE_ENV === 'production' ? '/docs' : '', // if serving under /docs path
910
reactStrictMode: true,
1011
images: { unoptimized: true },
1112
transpilePackages: ['@prisma-docs/eclipse'],
1213
experimental: {
1314
globalNotFound: true,
1415
},
1516
// docs.prisma.io: in production, redirect all requests to prisma.io/docs (browser navigates to prisma.io).
16-
async redirects() {
17-
if (process.env.NODE_ENV !== 'production') {
18-
return [];
19-
}
20-
return [
21-
{
22-
source: '/:path*',
23-
destination: 'https://prisma.io/docs/:path*',
24-
permanent: false, // use 307 until you've verified the behavior
25-
},
26-
];
27-
},
17+
// async redirects() {
18+
// if (process.env.NODE_ENV !== 'production') {
19+
// return [];
20+
// }
21+
// return [
22+
// {
23+
// source: '/:path*',
24+
// destination: 'https://prisma.io/docs/:path*',
25+
// permanent: false, // use 307 until you've verified the behavior
26+
// },
27+
// ];
28+
// },
2829
};
2930

3031
export default withSentryConfig(withMDX(config), {

0 commit comments

Comments
 (0)