Skip to content
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

Add sitemap.xml generation #8

Merged
merged 3 commits into from
Aug 20, 2023
Merged

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Aug 20, 2023

Description

This PR adds the functionality to generate a sitemap.xml file that includes all static pages, articles, and snippets from the content directory. The sitemap.xml file is essential for search engine optimization and better indexing of the website.

Summary of Changes

  • Created a new file sitemap.ts in the content directory to generate the sitemap.xml.
  • Modified the next.config.mjs file to include the sitemap.ts file in the pageExtensions array.
  • Modified the next.config.mjs file to add a new export withSitemap that wraps the existing withContentlayer export.
  • Modified the next.config.mjs file to use the withSitemap export instead of the withContentlayer export.
  • Modified the next.config.mjs file to add a new export sitemapOptions that specifies the sitemap configuration.

Please review and merge this PR to enable sitemap generation for better SEO and indexing.

Fixes #6.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-sitemap-xml-generation

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

@vercel
Copy link

vercel bot commented Aug 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
raviatluriin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2023 1:11pm

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Aug 20, 2023
@sweep-ai sweep-ai bot mentioned this pull request Aug 20, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Add sitemap.ts
1 participant