feat(hooks): add migration automation, deactivated site guard, and super admin flag

- Run database migrations on startup if `RUN_MIGRATIONS=true`
- Block public access to deactivated sites with a 503 page, allowing admin/login paths
- Add `isSuperAdmin` boolean to session user type in app.d.ts
This commit is contained in:
2026-06-06 02:02:49 -04:00
parent 23f2e06c09
commit f4245a996a
14 changed files with 1596 additions and 41 deletions
+16
View File
@@ -0,0 +1,16 @@
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: collective-hub-db
environment:
POSTGRES_USER: hub_dev
POSTGRES_PASSWORD: hub_dev_password
POSTGRES_DB: collective_hub
ports:
- '5432:5432'
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: