https://promptfoo.dev/ logo
Change UI base path from / to /foo
# ❓|questions
r
I want the UI to be available on http://server/foo I have Nginx running the configured to redirect http://server/foo to http://localhost:3000 where the UI is running. The UI assets are not loaded because paths like /assets/index.js are not available and need to be changed to */**foo**/assets.js*. Where can I set the /foo base path in promptfoo UI?
u
Are you running it via the docker container? You can set the
VITE_PUBLIC_BASENAME
while running Docker build to override the base path.