File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -6,25 +6,26 @@ const withMDX = createMDX();
66/** @type {import('next').NextConfig } */
77const 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
3031export default withSentryConfig ( withMDX ( config ) , {
You can’t perform that action at this time.
0 commit comments