Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

fix: enable Next.js static export for GitHub Pages - #10

Merged
Raphasha27 merged 1 commit into
mainfrom
fix/nextjs-static-export-20260531
May 31, 2026
Merged

fix: enable Next.js static export for GitHub Pages#10
Raphasha27 merged 1 commit into
mainfrom
fix/nextjs-static-export-20260531

Conversation

@Raphasha27

Copy link
Copy Markdown
Owner

Adds \output: 'export'\ to next.config.ts so the site can be deployed to GitHub Pages or any static host.

@Raphasha27
Raphasha27 merged commit 5d1cbe6 into main May 31, 2026
1 check failed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 16edb481a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread frontend/next.config.ts

const nextConfig: NextConfig = {
/* config options here */
output: "export",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Serve the exported out directory instead

In the Docker deployment path I checked (docker-compose.yml builds frontend/Dockerfile), the container still runs CMD ["npm", "start"], and npm start maps to next start. Next's own error catalog says "next start" does not work with "output: export" configuration. Use "npx serve@latest out" instead., so any container started from this image will fail after this config change unless the Dockerfile/start command is updated to serve the generated out directory or this output mode is made conditional.

Useful? React with 👍 / 👎.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant