chore: harden deployment dependencies
CI / verify (push) Failing after 6m2s

This commit is contained in:
2026-09-17 22:35:27 +08:00
parent 5188929dd0
commit f6968e3401
4 changed files with 9 additions and 25 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ export async function listProjects() {
export async function createProject(input: { name?: string; template?: string }) {
const template = input.template || "basic";
const templateRoot = path.join(TEMPLATES_ROOT, template);
const templateRoot = path.join(/* turbopackIgnore: true */ TEMPLATES_ROOT, template);
await fs.access(templateRoot);
const slug = (input.name || "新小工具").toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g, "-").replace(/^-|-$/g, "").slice(0, 28) || "tool";
const id = `${slug}-${crypto.randomBytes(3).toString("hex")}`;