Skip to content

fix: SQLite default value compatibility and docker/nginx networking#335

Open
phreakocious wants to merge 1 commit intoopenagents-org:developfrom
phreakocious:fix/sqlite-docker-nginx
Open

fix: SQLite default value compatibility and docker/nginx networking#335
phreakocious wants to merge 1 commit intoopenagents-org:developfrom
phreakocious:fix/sqlite-docker-nginx

Conversation

@phreakocious
Copy link
Copy Markdown

Summary

  • SQLite compatibility: Patches Column.__init__ to neutralize PostgreSQL-specific server_default values (gen_random_uuid(), NOW()) that SQLite can't handle, enabling local development with SQLite
  • Docker networking: Updates nginx.conf upstream names from backend/frontend to openagents-workspace/openagents-frontend to match actual container names in docker-compose
  • Frontend build: Adds NEXT_PUBLIC_API_URL as a build arg in the frontend Dockerfile so the API URL is baked in at build time rather than requiring runtime configuration
  • API URL fallback: Changes || to ?? for NEXT_PUBLIC_API_URL fallback across api.ts, auth.ts, and dashboard-api.ts so empty string is respected (not treated as falsy)
  • Fetch caching: Removes cache: 'no-store' from the base fetch wrapper to allow normal browser/CDN caching behavior

Test plan

  • Run workspace backend locally with SQLite — confirm tables create without errors
  • docker compose up — verify nginx routes to backend and frontend correctly
  • Build frontend Docker image with custom NEXT_PUBLIC_API_URL — confirm it's used at runtime
  • Confirm API calls work with the ?? fallback change

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

@phreakocious is attempting to deploy a commit to the Raphael's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant