Skip to content

Commit 5f5aad9

Browse files
copy static assets to the correct directory
1 parent 6622960 commit 5f5aad9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

builder/src/build/build-worker/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,13 @@ export async function buildWorker(
101101
updateWebpackChunksFile(nextjsAppPaths);
102102

103103
console.log(`\x1b[35m⚙️ Copying asset files...\n\x1b[0m`);
104-
await cp(`${nextjsAppPaths.dotNextDir}/static`, `${outputDir}/assets/_next`, {
105-
recursive: true,
106-
});
104+
await cp(
105+
`${nextjsAppPaths.dotNextDir}/static`,
106+
`${outputDir}/assets/_next/static`,
107+
{
108+
recursive: true,
109+
}
110+
);
107111

108112
console.log(`\x1b[35mWorker saved in \`${workerOutputFile}\` 🚀\n\x1b[0m`);
109113
}
@@ -187,4 +191,4 @@ function createFixRequiresESBuildPlugin(templateDir: string): Plugin {
187191
}));
188192
},
189193
};
190-
};
194+
}

0 commit comments

Comments
 (0)