You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage:
/api/:path* requests sent to another server for all REST HTTP methods.
For server deployments this redirect is done by the ingress/load balancer, but for local development ideally next.js can redirect all requests to another application endpoint. This works fine for GET requests, but not for other HTTP methods.
This discussion was converted from issue #21088 on January 15, 2021 09:29.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe the feature you'd like to request
It would be useful to be able to redirect all http methods using the Redirects feature (https://nextjs.org/docs/api-reference/next.config.js/redirects).
Usage:
/api/:path* requests sent to another server for all REST HTTP methods.
For server deployments this redirect is done by the ingress/load balancer, but for local development ideally next.js can redirect all requests to another application endpoint. This works fine for GET requests, but not for other HTTP methods.
Describe the solution you'd like
Describe alternatives you've considered
.
Beta Was this translation helpful? Give feedback.
All reactions