plane icon indicating copy to clipboard operation
plane copied to clipboard

fix: NextJS Api Route Nginx Proxy

Open piyushgarg-dev opened this issue 1 year ago • 1 comments

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 avatar Jun 02 '23 06:06 piyushgarg-dev

@piyushgarg-dev is attempting to deploy a commit to the Plane Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jun 02 '23 06:06 vercel[bot]

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.

sriramveeraghanta avatar Aug 07 '23 10:08 sriramveeraghanta