plane
plane copied to clipboard
fix: NextJS Api Route Nginx Proxy
Fixes #981
Summary
The bug occurred because there was a nginx proxy setup on /api/
which was forwarding the request to http://planebackend:8000/api/
which is a Django server. The call to /api/unspash
was intended to go to the API route of NextJS on port 3000 but it was being forwarded to PORT:8000. So, I have rewritten the NextJS Api routes to api/next
and added an nginx rule on /api/next/
to forward to localhost:3000
.
@piyushgarg-dev is attempting to deploy a commit to the Plane Team on Vercel.
A member of the Team first needs to authorize it.
We wanted to take a different approach in solving this one using the nginx conf file. We will make those change in our next release. Please feel free to open this PR in case you need any more help.