fix: auto-create DB tables at startup to fix UndefinedTableError on first boot

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianlouis/pop_puller_to_gmail/sessions/148f7d4a-586e-4c3a-9d56-187b41daf277
This commit is contained in:
copilot-swe-agent[bot]
2026-03-24 15:38:49 +00:00
parent 8583cd751e
commit c7686a49ea
3 changed files with 17 additions and 0 deletions
+1
View File
@@ -100,6 +100,7 @@ Comprehensive task breakdown for repository improvements and production readines
- [x] Fix Docker build failure: wrap `useSearchParams()` in Suspense boundary in `/auth/callback` page
- [x] Fix frontend API URL hardcoded to `localhost:8000` in production: replaced build-time `NEXT_PUBLIC_API_URL` with a runtime Next.js Route Handler proxy (`/api/v1/[...path]`) reading `BACKEND_URL` at server startup
- [x] Log `BACKEND_URL` at frontend server startup and include target URL in per-request proxy error messages
- [x] Fix `UndefinedTableError` on first boot: lifespan event now runs `Base.metadata.create_all()` so tables are created automatically when no migrations have been applied
### In Progress 🔨
- [ ] Configure branch protection rules