Skip to content

Commit b4eabb8

Browse files
BYKgetsantry[bot]
andauthored
fix(platform-redirect): Fixes the 500 error on /platform-redirect (#14273)
Fixes #14244 --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent bd8c284 commit b4eabb8

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)