bobarr
bobarr copied to clipboard
Fix WEB_UI_API_URL
The current implementation for WEB_UI_API_URL doesn't work. This is because:
- Environment variables in the frontend are added at buildtime, not runtime.
- Environment variables aren't exported to the Next.js frontend, unless they start with NEXT_PUBLIC.
This PR fixes this issue by using Next.js runtime configuration instead.
Ah sorry, I only tested this in dev. Bear with me and I'll fix it for full builds soon.