@mintlify/previewing 4.0.784 → 4.0.786
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -207,11 +207,11 @@ const onUpdateEvent = async (filename, callback) => {
|
|
|
207
207
|
case 'js':
|
|
208
208
|
case 'generatedStaticFile':
|
|
209
209
|
case 'staticFile': {
|
|
210
|
-
if (await isFileSizeValid(filePath,
|
|
210
|
+
if (await isFileSizeValid(filePath, 20)) {
|
|
211
211
|
await fse.copy(filePath, targetPath);
|
|
212
212
|
}
|
|
213
213
|
else {
|
|
214
|
-
console.error(Chalk.red(`🚨 The file at ${filename} is too big. The maximum file size is
|
|
214
|
+
console.error(Chalk.red(`🚨 The file at ${filename} is too big. The maximum file size is 20 mb.`));
|
|
215
215
|
}
|
|
216
216
|
break;
|
|
217
217
|
}
|