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")}`;
+6 -22
View File
@@ -18,7 +18,7 @@
"@types/node": "^24.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"dockerode": "^4.0.8",
"dockerode": "^5.0.1",
"tar-fs": "^3.1.1",
"tsx": "^4.20.0",
"typescript": "^5.9.0"
@@ -672,9 +672,9 @@
}
},
"node_modules/dockerode": {
"version": "4.0.12",
"resolved": "https://registry.npmjs.org/dockerode/-/dockerode-4.0.12.tgz",
"integrity": "sha512-/bCZd6KlGcjZO8Buqmi/vXuqEGVEZ0PNjx/biBNqJD3MhK9DmdiAuKxqfNhflgDESDIiBz3qF+0e55+CpnrUcw==",
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/dockerode/-/dockerode-5.0.1.tgz",
"integrity": "sha512-avsq/xk4YPIrn0CgleX5bjT9Y8IT1p9PxrNQ++RBQ2WEyFfHCTDsT9kmyxz+H/axnjAwg8wJWEIuPGOUuNupiA==",
"dev": true,
"license": "Apache-2.0",
"dependencies": {
@@ -683,11 +683,10 @@
"@grpc/proto-loader": "^0.7.13",
"docker-modem": "^5.0.7",
"protobufjs": "^7.3.2",
"tar-fs": "^2.1.4",
"uuid": "^10.0.0"
"tar-fs": "^2.1.4"
},
"engines": {
"node": ">= 8.0"
"node": ">= 14.17"
}
},
"node_modules/dockerode/node_modules/readable-stream": {
@@ -2357,21 +2356,6 @@
"version": "1.0.2",
"license": "MIT"
},
"node_modules/uuid": {
"version": "10.0.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
"integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
"deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
"dev": true,
"funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"license": "MIT",
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/wrap-ansi": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+1 -1
View File
@@ -20,7 +20,7 @@
"@types/node": "^24.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"dockerode": "^4.0.8",
"dockerode": "^5.0.1",
"tar-fs": "^3.1.1",
"tsx": "^4.20.0",
"typescript": "^5.9.0"
+1 -1
View File
@@ -15,6 +15,6 @@
"incremental": true,
"plugins": [{ "name": "next" }]
},
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"include": ["next-env.d.ts", ".next/types/**/*.ts", ".next/dev/types/**/*.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "data", "templates"]
}