Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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), {
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [ "dom", "dom.iterable", "esnext" ],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand Down Expand Up @@ -34,5 +34,5 @@
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules"]
"exclude": [ "node_modules" ]
}
Loading