You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A sample [Next.js](https://nextjs.org) project configured for deployment to GitHub Pages, bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
-[Yarn](https://yarnpkg.com/) (if not using Docker)
39
+
40
+
## Getting Started
41
+
42
+
### Using Docker
43
+
44
+
```bash
45
+
docker compose up
46
+
```
47
+
48
+
### Using Yarn
49
+
50
+
```bash
51
+
yarn install
52
+
yarn dev
53
+
```
54
+
55
+
Open [http://localhost:3000/operationsgateway-project](http://localhost:3000/operationsgateway-project) in your browser to see the result.
56
+
57
+
You can start editing the page by modifying `src/app/page.tsx`. The page auto-updates as you edit the file.
58
+
59
+
## Base Path for Images
60
+
61
+
To ensure images appear correctly on GitHub Pages, update the `src` prop of your `Image` components in `src/app/page.tsx` to include the base path `/operationsgateway-project/` (the slug of this repository):
62
+
63
+
```tsx
64
+
<Image
65
+
src="/operationsgateway-project/vercel.svg"
66
+
alt="Vercel Logo"
67
+
className={styles.vercelLogo}
68
+
width={100}
69
+
height={24}
70
+
priority
71
+
/>
72
+
```
73
+
74
+
Learn more in the [Next.js basePath and images documentation](https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath#images).
75
+
76
+
## Deployment
77
+
78
+
To deploy to GitHub Pages, follow the [Next.js GitHub Pages guide](https://github.com/gregrickaby/nextjs-github-pages) and ensure your `next.config.ts` is configured with the correct `basePath` and `assetPrefix`.
79
+
80
+
## Learn More
81
+
82
+
-[Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
83
+
-[Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
0 commit comments