Initial curated CertScope source from fe2bbe3ca5c98bf64be26a09c6c58ee805a7f87e

This commit is contained in:
Public Source Publisher committed 2026-10-01 01:30:09 +02:00
commit 7348faf6c0
65 files changed
+12509

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { cp, mkdir } from "node:fs/promises";
import path from "node:path";
import { fileURLToPath, pathToFileURL } from "node:url";
const projectRoot = path.resolve(fileURLToPath(new URL("../", import.meta.url)));
const standaloneRoot = path.join(projectRoot, ".next", "standalone");
await mkdir(path.join(standaloneRoot, ".next", "static"), { recursive: true });
await cp(path.join(projectRoot, ".next", "static"), path.join(standaloneRoot, ".next", "static"), { recursive: true, force: true });
await mkdir(path.join(standaloneRoot, "public"), { recursive: true });
try {
await cp(path.join(projectRoot, "public"), path.join(standaloneRoot, "public"), { recursive: true, force: true });
} catch (error) {
if (error?.code !== "ENOENT") throw error;
}
process.chdir(standaloneRoot);
await import(pathToFileURL(path.join(standaloneRoot, "server.js")).href);