Reverse Proxy? #4523
Unanswered
rayventerprise
asked this question in
Q&A
Reverse Proxy?
#4523
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I am trying to export my Next.js project to an Android app using Capacitor. It so far is working, however the last step is to get my rewrites to work. So currently I have this in my next.config.js.
I do know capacitor runs its own local server to handle assets downloading. Is there any way for me to incorporate a reverse proxy that my next.js app uses on the local server in the android app?
Example would be I could create a redirect mapping in capacitor to tell all "/api/" routes to redirect to "https://api.myserver.com/api/"
Its very important as my application uses csrf/cookies and would be best if all requests/responses can be processed through the local server.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions