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 }); }