- Basic
location /_next {
proxy_pass https://localhost:[port];
}
- In case of using Next.js
API
location /api {
proxy_pass https://localhost:[port];
}
- In case of using Next.js link/routing
location ~ ^/([^/]+)(.*)$ {
proxy_pass https://localhost:4030;
}