diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs index f23c7ad1a9..1ce7f5ce86 100644 --- a/apps/docs/next.config.mjs +++ b/apps/docs/next.config.mjs @@ -5,27 +5,14 @@ const withMDX = createMDX(); /** @type {import('next').NextConfig} */ const config = { - // basePath: process.env.NODE_ENV === 'production' ? '/docs' : '', // if serving under /docs path - // assetPrefix: process.env.NODE_ENV === 'production' ? '/docs' : '', // if serving under /docs path + basePath: '', + assetPrefix: process.env.NODE_ENV === 'production' ? '/docs' : '', // if serving under /docs path reactStrictMode: true, images: { unoptimized: true }, transpilePackages: ['@prisma-docs/eclipse'], experimental: { globalNotFound: true, }, - // docs.prisma.io: in production, redirect all requests to prisma.io/docs (browser navigates to prisma.io). - // async redirects() { - // if (process.env.NODE_ENV !== 'production') { - // return []; - // } - // return [ - // { - // source: '/:path*', - // destination: 'https://prisma.io/docs/:path*', - // permanent: false, // use 307 until you've verified the behavior - // }, - // ]; - // }, }; export default withSentryConfig(withMDX(config), { diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json index b7854bb297..4937c5da2c 100644 --- a/apps/docs/tsconfig.json +++ b/apps/docs/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "baseUrl": ".", "target": "ESNext", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ "dom", "dom.iterable", "esnext" ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -34,5 +34,5 @@ ".next/types/**/*.ts", ".next/dev/types/**/*.ts" ], - "exclude": ["node_modules"] + "exclude": [ "node_modules" ] }