[bug]: Updating the NEXT_PUBLIC_API_BASE_URL environment variable doesn't change the target endpoint in the frontend
@srinivaspendem is already working on this.
Since May 30, 2024.
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
I am currently hosting Plane in a specific work environment that requires me to host the backend on a different subdomain. After checking the .env.example file, I noticed the "NEXT_PUBLIC_API_BASE_URL" variable and set it to my backend's URL. However, it seems like changing that variable and recreating the container doesn't change anything (when I try to login for instance): the request is always sent to the current domain.
I'm using the prebuilt images from Docker Hub.
Steps to reproduce
Start a Docker container with the makeplane/plane-frontend:latest image, with the NEXT_PUBLIC_API_BASE_URL set to any different URL from the one the container is started on
Check the network tab from your console to see the request is not sent to the correct URL.
Environment
Deploy preview
Browser
Google Chrome
Variant
Self-hosted
Version
latest
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.