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 ca216ec commit 5ba33f6Copy full SHA for 5ba33f6
next.config.mjs
@@ -156,7 +156,7 @@ const config = {
156
157
if (process.env.NODE_ENV === "production") {
158
const redirectsFile = path.join(import.meta.dirname, "out/_redirects");
159
- await fs.mkdir(path.dirname(redirectsFile));
+ await fs.mkdir(path.dirname(redirectsFile), { recursive: true });
160
await fs.writeFile(
161
redirectsFile,
162
redirects
0 commit comments