https://github.com/othytenk/agula-static-web
Deploy the agula web using nextjs static site generator on Github Pages
https://github.com/othytenk/agula-static-web
github-pages nextjs static-site static-site-generator tailwindcss typescript
Last synced: about 1 month ago
JSON representation
Deploy the agula web using nextjs static site generator on Github Pages
- Host: GitHub
- URL: https://github.com/othytenk/agula-static-web
- Owner: OthyTenk
- Created: 2023-11-05T09:22:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-05T09:35:55.000Z (over 2 years ago)
- Last Synced: 2025-02-15T01:14:13.666Z (over 1 year ago)
- Topics: github-pages, nextjs, static-site, static-site-generator, tailwindcss, typescript
- Language: TypeScript
- Homepage: https://agula.xyz
- Size: 222 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Deploy Next.js to Github Pages with Github Actions. [`View the deployed app 🚀`](https://othytenk.github.io/agula-static-web/).
## Configure Next.js
```bash
/**
* @type {import('next').NextConfig}
**/
const isProd = process.env.NODE_ENV === "production";
const nextConfig = {
/**
* Enable static exports for the App Router.
*
* @see https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
*/
output: "export",
/**
* Set base path. This is usually the slug of your repository.
*
* @see https://nextjs.org/docs/app/api-reference/next-config-js/basePath
*/
basePath: isProd ? "/agula-static-web" : "",
distDir: "dist",
/**
* Disable server-based image optimization. Next.js does not support
* dynamic features with static exports.
*
* @see https://nextjs.org/docs/pages/api-reference/components/image#unoptimized
*/
images: {
unoptimized: true,
},
};
module.exports = nextConfig;
```
## Deploy on Github Pages
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.