Hi, I'm running GrowthBook with these environment ...
# ask-questions
h
Hi, I'm running GrowthBook with these environment variables:
Copy code
APP_ORIGIN=<https://growthbook.example.com>  
API_HOST=<https://growthbook-api.example.com>
However, both the frontend and backend seem to be accessible only via
<https://growthbook.example.com>
. What I expect: • Frontend should work at
<https://growthbook.example.com>
. • API should work at
<https://growthbook-api.example.com>
. What happens: • Both frontend and API are served from
<https://growthbook.example.com>
. DNS is set up correctly, and both domains point to the right IP. I've configured everything based on the docs, but it seems like something's not working as expected. Any idea what might be causing this? Thanks!
It feels like GrowthBook is just defaulting to the current host instead of using the value set in
API_HOST
.
f
you should be able to hit the API host directly
and it will return a small JSON object