-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share button in UI doesn't go to self-hosted url #653
Comments
@typpo Sorry to ping you directly, but I would really appreciate if you could chime in on the last question in my previous comment. |
@leo-shakudo Thanks for tagging me. I agree having to set the URL as a build arg is pretty inconvenient. This is a side effect of the web ui being a next.js app built in standalone mode. The environment variables are inlined at build time. Too much magic! There's an article here with some alternatives which I'll have to try out https://notes.dt.in.th/NextRuntimeEnv |
Found an alternative by moving the build stage into the container (npm install inside entrypoint.sh), which is obviously slower, but I am now able to use container env variables which can be set dynamically when running/deploying. For anyone else curious, this is how entrypoint.sh is defined in my Dockerfile:
Thanks for responding @typpo, I am not too familiar with nextjs and was wondering what would be the side effect of not building in standalone mode? |
Hello,
When I set the env variables for PROMPTFOO_REMOTE_API_BASE_URL and PROMPTFOO_REMOTE_APP_BASE_URL I am able to send the evals to my self hosted server via cmd line. If I were to use the share button, it seems to be going to the default API server, not quite sure why, the source code seems to check for the env variable but doesn't quite seem to work.
The text was updated successfully, but these errors were encountered: