-
Notifications
You must be signed in to change notification settings - Fork 63
feat: Generate sitemaps using next-sitemap #243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
I may need help figuring out how to tie the build and sitemap tasks together. Right now, with this PR, they have to be run one after the other. |
|
Note to self: if this solution proves too inflexible or difficult to properly configure, it may be easier to create a sitemap component that works a bit like generateRSS.ts. |
| "executor": "@nrwl/workspace:run-commands", | ||
| "outputs": [], | ||
| "options": { | ||
| "command": "next-sitemap --config apps/consulting/next-sitemap.config.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcin-antczak-naturaily can we make this a part of the build step so that /sitemap.xml gets deployed with each Vercel deploy?
Add npm package
next-sitemapalong with configuration needed to generate site maps for Consulting and Labs sites.This is a first step to running pa11y against all of the pages on the websites. As such, it is a step toward closing the following issues: #152, #153, #154, and #156.
This code was largely patterned after code in the repo that generates the nx.dev website: https://github.com/nrwl/nx/blob/master/nx-dev/nx-dev/project.json#L19
How to test locally
Consulting:
Labs:
To do
nx build consulting, sitemap.xml is output into the public folder<changefreq>and<priority>from sitemap.xml if they have unintended consequences and are not needednpm run start