Skip to content

ral-facilities/inventory-management-system-project

Repository files navigation

Next.js GitHub Pages Test

A sample Next.js project configured for deployment to GitHub Pages, bootstrapped with create-next-app.

Table of Contents

Project Structure

/ (root)
├── docker-compose.yml
├── Dockerfile
├── eslint.config.mjs
├── next.config.ts
├── package.json
├── tsconfig.json
├── public/
│   ├── scigateway-white-text-blue-mark-logo.svg
│   └── UKRI_STFC_SCIENTIFIC_COMPUTING_RGB.png
└── src/
    └── app/
        ├── layout.tsx
        ├── page.tsx
        └── theme.tsx

Prerequisites

  • Docker (for containerized development)
  • Node.js (v18+ recommended)
  • Yarn (if not using Docker)

Getting Started

Using Docker

docker compose up

Using Yarn

yarn install
yarn dev

Open http://localhost:3000/inventory-management-system-project in your browser to see the result.

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

Base Path for Images

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 /inventory-management-system-project/ (the slug of this repository):

<Image
  src="/inventory-management-system-project/vercel.svg"
  alt="Vercel Logo"
  className={styles.vercelLogo}
  width={100}
  height={24}
  priority
/>

Learn more in the Next.js basePath and images documentation.

Deployment

To deploy to GitHub Pages, follow the Next.js GitHub Pages guide and ensure your next.config.ts is configured with the correct basePath and assetPrefix.

Learn More

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published