Seguridad y docs: fix SQLi en updatePost, middleware por segmentos exactos, cover-cache directo al upstream, JWT sin fallback hardcodeado, password sudo fuera de deploy/setup.sh; reescritura AGENTS.md y CLAUDE.md
This commit is contained in:
+3
-4
@@ -13,10 +13,9 @@ if (!fs.existsSync(standaloneDir)) {
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
if (!fs.existsSync(staticDst)) {
|
||||
console.log("Copying static files to standalone output...")
|
||||
fs.cpSync(staticSrc, staticDst, { recursive: true })
|
||||
}
|
||||
fs.rmSync(staticDst, { recursive: true, force: true })
|
||||
fs.cpSync(staticSrc, staticDst, { recursive: true })
|
||||
console.log("Synced static files to standalone output...")
|
||||
|
||||
const server = path.join(standaloneDir, "server.js")
|
||||
if (!fs.existsSync(server)) {
|
||||
|
||||
Reference in New Issue
Block a user