We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85ef27 commit a93fa94Copy full SHA for a93fa94
src/mdx.ts
@@ -54,6 +54,11 @@ type SlugFile = {
54
};
55
56
const root = process.cwd();
57
+// We need to limit this as we have code doing things like Promise.all(allFiles.map(...))
58
+// where `allFiles` is in the order of thousands. This not only slows down the build but
59
+// it also crashes the dynamic pages such as `/platform-redirect` as these run on Vercel
60
+// Functions which looks like AWS Lambda and we get `EMFILE` errors when trying to open
61
+// so many files at once.
62
const FILE_CONCURRENCY_LIMIT = 200;
63
const CACHE_COMPRESS_LEVEL = 4;
64
const CACHE_DIR = path.join(root, '.next', 'cache', 'mdx-bundler');
0 commit comments