Something went wrong. Try again.
Barazo default frontend barazo.forum
Something went wrong. Try again.
fix(api): use relative URLs for browser-side fetch master
NEXT_PUBLIC_API_URL was baked at build time by Next.js, but docker-compose.yml only passed it as a runtime env var. On staging the frontend fell back to localhost:3000, breaking OAuth and all API calls from the browser. Browser-side requests now use relative URLs (empty string) so Caddy proxies them correctly. Server-side rendering uses API_INTERNAL_URL (defaults to http://localhost:3000 for local dev).
Author Guido X Jansen Date (Feb 16, 2026, 9:53 AM UTC) Commit 43ee8cdf 43ee8cdf3dffe24c955b405816567cc5eb96e1ba Parent fecfa4f6 fecfa4f6f2f436c8b9d1a8228ac2482f2ba3238f