Download scripts/prepare-standalone.mjs from T2T-AI-X/copilot_work_3: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/T2T-AI-X/copilot_work_3/resolve/refs%2Fpr%2F2/scripts/prepare-standalone.mjs
- Command line
-
hf download hf://T2T-AI-X/copilot_work_3@refs/pr/2/scripts/prepare-standalone.mjs
-
curl -L -o prepare-standalone.mjs https://huggingface.co/T2T-AI-X/copilot_work_3/resolve/refs%2Fpr%2F2/scripts/prepare-standalone.mjs
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 }); | |
| } | |