feat: missing required setting fails startup with a field-specific error (E00-S04-T02)
- packages/config: add src/startup.ts exposing assertValidConfig (builds on the T01 TypeBox/Ajv schema) and the field-specific startup errors (MissingRequiredSettingError names the missing field; ConfigStartupError names each violating field); re-export from the package boundary - apps/server: validate the startup configuration (including the required EPPP_SESSION_SECRET) before the server binds, so a missing required setting crashes the process at startup naming the field; depends on @personal-blog/config - compose.yaml: provide EPPP_SESSION_SECRET for the app service (dev-only >= 32 char default; override via .env / shell) - Dockerfile: ship the compiled packages/config in the image (build source + runtime dist), matching the server's new workspace dependency - pnpm-lock.yaml: apps/server importer gains @personal-blog/config
This commit is contained in:
Generated
+3
@@ -14,6 +14,9 @@ importers:
|
||||
|
||||
apps/server:
|
||||
dependencies:
|
||||
'@personal-blog/config':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/config
|
||||
'@personal-blog/database-postgres':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/database-postgres
|
||||
|
||||
Reference in New Issue
Block a user