@Manpreet-01
Posted
i am wondering how you deploy nextJs project on github pages ?.
please give some clue / idea.
thanks.
@TKD04
Posted
Hello @Manpreet-01!! Thanks for the comment!
I used GitHub Actions to deploy to GitHub Pages. There is a templete settings file for Next.js to deploy which I used. so I did not do any difficult settings manually.
Here is what I did to deploy Next.js on GitHub Pages:
- Create Next.js project on local by create-next-app
- Push it to GitHub
- From the repository page, add GitHub actions for Next.js
- Commit added files from browser
Then I push any commits, it will automatically deploy. 😁
@Manpreet-01
Posted
@TKD04 Thanks for the replying my comment.