resolve GitHub Pages build failure #11
Conversation
…publishing to GitHub Pages.
✅ Deploy Preview for convoy-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 35d6c63. Configure here.
| - name: Build with Next.js | ||
| run: ${{ steps.detect-package-manager.outputs.runner }} next build | ||
| env: | ||
| GITHUB_PAGES: true |
There was a problem hiding this comment.
Reserved GITHUB_ prefix renders env var ineffective
High Severity
GITHUB_PAGES starts with the GITHUB_ prefix, which is reserved by GitHub Actions — custom env vars with this prefix cannot be set or overwritten in a workflow step. The env: GITHUB_PAGES: true assignment will be silently ignored, so process.env.GITHUB_PAGES will never equal 'true' in next.config.js. As a result, isGithubPagesBuild is always false, tunnelRoute: '/monitoring' is always included, and the build failure this PR intends to fix will persist.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 35d6c63. Configure here.


Fixes the GitHub Actions deploy workflow so next build succeeds when publishing to GitHub Pages.
Note
Low Risk
Low risk: workflow-only environment flag plus a conditional Sentry config tweak; main impact is disabling the
/monitoringtunnel route specifically for GitHub Pages builds.Overview
Fixes GitHub Pages deploy builds by setting
GITHUB_PAGES=trueduring thenext buildstep and using it innext.config.jsto skip SentrytunnelRouteconfiguration (which relies on rewrites unsupported by Pages static export).Non-Pages builds keep the existing Sentry tunnel behavior; Pages builds proceed with
next exportwithout attempting the rewrite-based tunnel.Reviewed by Cursor Bugbot for commit 35d6c63. Bugbot is set up for automated code reviews on this repo. Configure here.