Skip to content

Commit bcb3b01

Browse files
Update apps/docs/next.config.mjs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent b37caf7 commit bcb3b01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/docs/next.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@ const config = {
2828
];
2929
},
3030
async redirects() {
31+
if (process.env.ENABLE_DOCS_SUBDOMAIN_PROXY === '1') {
32+
return [];
33+
}
3134
return [
3235
{
3336
source: '/:path*',
3437
destination: 'https://prisma.io/docs/:path*',
35-
permanent: true, // 308
38+
permanent: false, // use 307 until you've verified the behavior
3639
},
3740
];
3841
},

0 commit comments

Comments
 (0)