Skip to content

Commit 5ba33f6

Browse files
committed
ensure out dir before touch
1 parent ca216ec commit 5ba33f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const config = {
156156

157157
if (process.env.NODE_ENV === "production") {
158158
const redirectsFile = path.join(import.meta.dirname, "out/_redirects");
159-
await fs.mkdir(path.dirname(redirectsFile));
159+
await fs.mkdir(path.dirname(redirectsFile), { recursive: true });
160160
await fs.writeFile(
161161
redirectsFile,
162162
redirects

0 commit comments

Comments
 (0)