Skip to content

Commit 067caaf

Browse files
committed
fix(platform-redirect): Fixes the 500 error on /platform-redirect
Fixes #14244
1 parent 9925023 commit 067caaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mdx.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ const root = process.cwd();
6060
const FILE_CONCURRENCY_LIMIT = 200;
6161
const CACHE_COMPRESS_LEVEL = 4;
6262
const CACHE_DIR = path.join(root, '.next', 'cache', 'mdx-bundler');
63-
mkdirSync(CACHE_DIR, {recursive: true});
63+
if (process.env.CI) {
64+
mkdirSync(CACHE_DIR, {recursive: true});
65+
}
6466

6567
const md5 = (data: BinaryLike) => createHash('md5').update(data).digest('hex');
6668

0 commit comments

Comments
 (0)