Skip to content

heegupark/nginx-nextjs-setting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

nginx-nextjs-setting

add this to .conf file

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published