K
K
kamelot432021-03-09 12:06:01
proxy
kamelot43, 2021-03-09 12:06:01

How to set up proxy in Next.js?

Guys, welcome) There was a question about proxying in next.js. The previous version of the app used Create React App . proxy could be configured in the package.json file by adding one line of code. Now we need to perform a similar task in Next.js . We use a custom server https://nextjs.org/docs/advanced-features/custom-server . How can I set up proxying if we use a custom server in Next.js? I haven't found a good solution to this problem on the net yet. Perhaps someone faced a similar problem? please share your experience. There are similar examples where you can peep something. Thanks in advance .

60473a47705ee939102928.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question