This is a Next.js template which can be deployed to GitHub Pages as a static site.
next.config.ts
to match your GitHub repository name:
https://github.com/<user>/<repo>
basePath
config to the name of your repo (e.g. /repo
)main
branchdeploy
script (e.g. npm run deploy
) to create the gh-pages
branchgh-pages
as the branch with the /root
folder. Hit Savedeploy
script again to push the changes to GitHub PagesCongratulations! You should have a URL like:
https://<github-user-name>.github.io/<github-project-name>/
For more information, see our deployment documentation.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!