Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/open-next/src/build/copyTracedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import url from "node:url";

import {
copyFileSync,
cpSync,
existsSync,
mkdirSync,
readFileSync,
Expand Down Expand Up @@ -360,6 +361,14 @@ File ${serverPath} does not exist
.forEach((file) => copyStaticFile(`server/${file}`));
}

// Copy .next/static/css from standalone to output dir
// needed for optimizeCss feature to work
cpSync(
path.join(standaloneNextDir, "static", "css"),
path.join(outputNextDir, "static", "css"),
{ recursive: true },
);

logger.debug("copyTracedFiles:", Date.now() - tsStart, "ms");

return {
Expand Down
Loading