feat: Update Dockerfile and server configuration for improved health checks and error handling

This commit is contained in:
2026-10-19 23:04:54 +03:00
parent e38c388462
commit 7206bf9c4a
10 changed files with 324 additions and 60 deletions

7
server/paths.js Normal file
View File

@@ -0,0 +1,7 @@
import { resolve } from "node:path";
import { fileURLToPath } from "node:url";
/** Where the catalog, the week table and parsed documents are cached; tests use a temporary one. */
export const DATA = process.env.PSU_DATA_DIR
? resolve(process.env.PSU_DATA_DIR) + "/"
: fileURLToPath(new URL("../.data/", import.meta.url));