copilot_work_3 / scripts /prepare-standalone.mjs
Suchinthana Wijesundara
Init commit with project codes
f64a3bf
Raw History Blame
262 Bytes
import { cp, mkdir } from "node:fs/promises";
for (const path of ["public", ".next/static"]) {
const destination = `.next/standalone/${path}`;
await mkdir(destination, { recursive: true });
await cp(path, destination, { recursive: true, force: true });
}