Skip to content

fix(nx-dev): restore sitemap generation #35351

Merged
jaysoo merged 1 commit into
masterfrom
fix_nxdev_sitemap
Apr 20, 2026
Merged

fix(nx-dev): restore sitemap generation #35351
jaysoo merged 1 commit into
masterfrom
fix_nxdev_sitemap

Conversation

@jaysoo

@jaysoo jaysoo commented Apr 20, 2026

Copy link
Copy Markdown
Member

The previous clean-up was overly zealous and removed both sitemap.xml and sitemap-0.xml because I assumed there was nothing from Next.js app. This restores both.

A follow-up will be to move these out of Next.js, but for now the root one will point to both Framer and Next.js routes, and the latter has /courses/* which we use still.

@jaysoo jaysoo requested a review from a team as a code owner April 20, 2026 19:22
@jaysoo jaysoo requested a review from leosvelperez April 20, 2026 19:22
@netlify

netlify Bot commented Apr 20, 2026

Copy link
Copy Markdown

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 22159d6
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69e687dbbf70af617d7bed32
😎 Deploy Preview https://deploy-preview-35351--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Apr 20, 2026

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 22159d6
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69e686252200a0000802994f
😎 Deploy Preview https://deploy-preview-35351--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 22159d6

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 3m 34s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 8s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 19s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 24s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 14s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-20 20:11:44 UTC

FrozenPandaz added a commit that referenced this pull request Apr 20, 2026
nx-dev sitemap generation is being restored in #35351, so the cross-site
link validation branch is still needed. Keep the narrowed
dependentTasksOutputFiles glob on astro-docs:validate-links — that's
independent of where the nx-dev sitemap comes from.
FrozenPandaz added a commit that referenced this pull request Apr 20, 2026
validate-links reads nx-dev/nx-dev/public/sitemap-0.xml (restored by
#35351) to validate cross-site links. Add nx-dev:build to dependsOn so
the existing **/sitemap*.xml dependentTasksOutputFiles glob picks up
nx-dev's sitemap output; before #35351 lands the existsSync guard in
validate-links.ts no-ops.
…astro-docs)

## Current Behavior

After the cleanup in #35315 removed next-sitemap, nx.dev/sitemap.xml and
nx.dev/sitemap-0.xml 404. The framer-sitemap.ts edge function still serves
/sitemap-1.xml and astro-docs serves /docs/sitemap-index.xml, but there's
no root index tying them together, so SEO crawlers lose the sitemap entry
point.

## Expected Behavior

Bring back next-sitemap with generateRobotsTxt disabled. The sitemap
target rebuilds:

- public/sitemap.xml — root index (patched to include /sitemap-1.xml and
  /docs/sitemap-index.xml via scripts/patch-sitemap-index.mjs)
- public/sitemap-0.xml — Next.js pages (now just /courses/* since the
  cleanup pared nx-dev down)

robots.txt continues to be served via the Next.js beforeFiles rewrite to
astro-docs (Content-Signal and correct sitemap URL preserved).

This is a stopgap to unbreak sitemaps quickly; long-term we'll move
sitemap generation out of Next.js alongside the rest of the nx-dev
retirement.

## Related Issue(s)

DOC-479
@jaysoo jaysoo force-pushed the fix_nxdev_sitemap branch from 9e23b3a to 22159d6 Compare April 20, 2026 20:01
@jaysoo jaysoo merged commit 902dcb4 into master Apr 20, 2026
25 of 26 checks passed
@jaysoo jaysoo deleted the fix_nxdev_sitemap branch April 20, 2026 20:19
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 26, 2026
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.

3 participants