bobarr icon indicating copy to clipboard operation
bobarr copied to clipboard

Fix WEB_UI_API_URL

Open lachlan2k opened this issue 2 years ago • 1 comments

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.

lachlan2k avatar Apr 23 '22 00:04 lachlan2k

Ah sorry, I only tested this in dev. Bear with me and I'll fix it for full builds soon.

lachlan2k avatar Apr 23 '22 07:04 lachlan2k