File size: 262 Bytes
f64a3bf
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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 });
}