Skip to content

Commit

Permalink
copy static assets to the correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Sep 12, 2024
1 parent 6622960 commit 5f5aad9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions builder/src/build/build-worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,13 @@ export async function buildWorker(
updateWebpackChunksFile(nextjsAppPaths);

console.log(`\x1b[35m⚙️ Copying asset files...\n\x1b[0m`);
await cp(`${nextjsAppPaths.dotNextDir}/static`, `${outputDir}/assets/_next`, {
recursive: true,
});
await cp(
`${nextjsAppPaths.dotNextDir}/static`,
`${outputDir}/assets/_next/static`,
{
recursive: true,
}
);

console.log(`\x1b[35mWorker saved in \`${workerOutputFile}\` 🚀\n\x1b[0m`);
}
Expand Down Expand Up @@ -187,4 +191,4 @@ function createFixRequiresESBuildPlugin(templateDir: string): Plugin {
}));
},
};
};
}

0 comments on commit 5f5aad9

Please sign in to comment.