K
K
kamelot432021-03-10 14:33:23
proxy
kamelot43, 2021-03-10 14:33:23

How to set up a proxy in Next.js?

Guys, welcome) tell me please what could be the problem in the work of the rewrites method? there is a config file in the project folder. The application itself runs inside a Docker container. If you directly access the request along the path nginx_storytale-app/api .... - you can get the data and draw it on the page. I tried to replace part of the path using rewrites - nothing picks up. what could be the problem with rewrites ? why the method from the documentation does not work? thanks in advance.

6048ae4e1f2d6159136565.png6048ae5442998810309267.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