/ghpages-13

Setup your Nextjs site in Github Pages

Primary LanguageShellApache License 2.0Apache-2.0

Hugo Hugo GitHub Pages

Use this stack to spin up a static website in seconds.

Why should you use this stack?

You can spin a website in seconds using NextJS.

Next.js gives you the best developer experience with all the features you need for production: hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching and more. No config needed. Read more about next.js

The website is hosted in Github Pages.

The stack also sets up a proper Github CI/CD environment by taing care of the following things

  • creating a "main" branch, and applying below additional settings.
  • configuring github repository to dismiss-stale-reviews

What are the inputs to pass while setting up the stack?

- NODE_VERSION
- GITHUB_PAT (GitHub PAT with repo and workflow permissions)

Github apps installed with this stack

NA

Version summary

nextjs version (17.0.2)

deployment to github pages

GitHub Pages

How to setup local development server?

# start using github-codespaces developer environments 

# or alternatively start a local development environment.
npm run dev
open http://localhost:3000 

# to run tests
npm test

# to generate a production build
npm run build

Learn more

Nextjs

Learn more about next.js from the official tutorial. Visit https://nextjs.org/docs to view the full documentation.

Github Pages

Learn more about Github Pages

Other Useful links

Security guide

Please see our guide lines for reporting issues related to security.md.

Contributor guide

Please see our guide lines for contributing.md.

Contributors

License

Unless otherwise noted, this GitHub Stack is distributed under the Apache Version 2.0 license found in the LICENSE file.