Description
Introduction In general, we expect to have a default proxy setup in Next.js just like reac...
Summary
- DEV environment Introduction In general, we expect to have a default proxy setup in Next.js just like react.
- Fortunately, in version 9.5, Next.js released a new simple way to interact with APIs that hosted outside the app.
- Please have a look at the below code.
- Here, the source will filter every calls that start with '/api' and the destination will be used to rewrite the request with 'http://localhost:3333/api'.