mirror of
https://github.com/resend/react-email.git
synced 2026-09-14 14:18:02 +08:00
fix(react-email): Do not allow .next/cache in dist/preview
This commit is contained in:
@@ -28,5 +28,6 @@ nextBuildProcess.on('exit', (code) => {
|
||||
fs.rmSync(builtPreviewPath, { recursive: true });
|
||||
}
|
||||
fs.mkdirSync(builtPreviewPath, { recursive: true });
|
||||
fs.rmSync('.next/cache', { recursive: true });
|
||||
fs.renameSync('.next', path.join(builtPreviewPath, '/.next'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user