Hey guys, I deploy GrowthBook on our platform base...
# ask-questions
f
Hey guys, I deploy GrowthBook on our platform based on k8s. The backend has already running up, but frontend cannot connect to it. I've already set these env but not works. Some one provide suggestions?
MONGODB_USERNAME = admin MONGODB_PASSWORD = GrowthbookMongo! MONGODB_HOST = mongo-growthbook MONGODB_PORT = 27017 APP_ORIGIN = http://localhost:3000 API_HOST = http://localhost:3100 JWT_SECRET = GrowthbookMongo! ENCRYPTION_KEY = GrowthbookMongo! CORS_ORIGIN_REGEX = '.*'
f
Hi Yi - the APP_ORIGIN and API_HOST are most likely not correct - the API HOST needs to be a routable URL from your GrowthBook App (front end) to the API. If you enter it directly you should see a small json object returned
f
Yes, I tried use cluster internal addr and external, both failed. I ineed see the json by the external address in browser. Do you have any other debug suggestions?