Skip to content

updates#172

Closed
prashantchauhan-12 wants to merge 1 commit intophysicshub:mainfrom
prashantchauhan-12:fix/sitemap-issue
Closed

updates#172
prashantchauhan-12 wants to merge 1 commit intophysicshub:mainfrom
prashantchauhan-12:fix/sitemap-issue

Conversation

@prashantchauhan-12
Copy link
Contributor

🔍 Description #107

This PR fixes a critical bug where the sitemap.xml file was not being correctly generated or updated during deployment.
The Issue:
The Google Search Console was unable to read the sitemap because the deployed version was stale or missing new routes.
Investigation revealed that the GitHub Actions workflow (release.yml) was running npx next build directly. However, our package.json defines the build script as "npm run generate:sitemap && next build". By bypassing the package script, the CI pipeline was skipping the sitemap generation step entirely.
The Fix:
Updated .github/workflows/release.yml to use npm run build instead of npx next build. This ensures that generate:sitemap runs automatically before the Next.js build, guaranteeing that every deployment has a fresh, valid sitemap.

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.

1 participant