Skip to content

fix(react): add output: 'export' to next.config.js for GitHub Pages build#253

Draft
Copilot wants to merge 2 commits into
copilot/fix-action-job-failurefrom
copilot/fix-reminder-notification-issue
Draft

fix(react): add output: 'export' to next.config.js for GitHub Pages build#253
Copilot wants to merge 2 commits into
copilot/fix-action-job-failurefrom
copilot/fix-reminder-notification-issue

Conversation

Copilot AI commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

next build does not generate an out directory unless output: 'export' is explicitly set — the deploy pipeline was calling npm run export (which requires out/) immediately after next build, causing the job to fail every time.

Change

Added output: 'export' to the isProd && isGitHubPages config block in next.config.js:

...(isProd && isGitHubPages && {
  output: 'export',  // causes next build to emit the out/ directory
  basePath: '/Reminders',
  assetPrefix: '/Reminders/',
  images: { unoptimized: true }
}),

This setting is scoped to the GitHub Pages production build only, leaving Docker and local dev builds unaffected.

Original prompt

Pull request: #252


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…uild

Co-authored-by: KaueReinbold <22650820+KaueReinbold@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix reminder notification not triggering properly fix(react): add output: 'export' to next.config.js for GitHub Pages build Feb 23, 2026
Copilot AI requested a review from jumperck February 23, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants