Skip to content

alexribeirodesa/nextjs-github-page-template

Repository files navigation

Open https://alexribeirodesa.github.io/nextjs-github-page-template/ to test the project template!

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

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!

Configure a GitHub Page

Update the values from next.build.config.js to

  • basePath: "/your-github-project",
  • assetPrefix: "/your-github-project",

When using the next/image component, you will need to add the basePath in front of src. For example, using /docs/me.png will properly serve your image when basePath is set to /docs.

Deploy on GitHub Page

Deploy on CloudFlare Page

Know Issues

  • NextJS Image not working with static images;

The Creator

Hi, I'm Alexandre Ribeiro de Sá. @elalezito

In past years I have developed several assets for Unity, GameMaker and Construct, developed original games for arcade machines and more :)

Now I'm using some of my free time to stream on YouTube and develop a free, powerfull and easy to use 2D game engine.

Support the Project

Buy Me A Coffee

About

A template for NextJS GitHub pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published