How to Deploy Next.js Sites to Netlify
Step 1: Put Your Next.js Site Code in a Git Repo
Step 2: Create a New Netlify Site From Your Next.js Site Repo
Choose the team and branch to deploy from the dropdowns
Set the build command to next build
Leave the publish directory blank
Click "Deploy Site"
That's All!
git demo: https://github.com/bsdaoquang/upload-...