Fix Dockerfile permissions, add nextjs standalone output, and graceful config load

This commit is contained in:
mstfyldz
2026-05-27 16:49:31 +03:00
parent 3ee41864f4
commit 10f7ee95dd
3 changed files with 54 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ export interface Config {
}
export function readConfig(): Config {
if (!fs.existsSync(CONFIG_PATH)) {
return { sites: [], databases: [], services: [] }
}
const raw = fs.readFileSync(CONFIG_PATH, 'utf-8')
return JSON.parse(raw)
}