Skip to content

Conversation

halilatilla
Copy link
Contributor

I've noticed that the project was missing a sitemap and a robots.txt file. Including these can significantly improve the site's SEO and accessibility for search engines.

Here are the key changes implemented:

  • Included next-sitemap package in devDependencies.
  • Introduced next-sitemap.config.js for managing dynamic file generation.
  • Adjusted postbuild script in package.json to utilize next-sitemap.
  • Set the output directory for generated files to public.
  • Listed these dynamically created files in .gitignore to prevent committing.

Upon completion of the build process, these files will be available within the public folder.

public folder
Screenshot 2023-07-21 at 23 29 49

robots.txt
Screenshot 2023-07-21 at 23 32 48

sitemap.xml
sitemap

sitemap-0.xml
sitemap-0

@aykutkardas aykutkardas merged commit 4054335 into aykutkardas:develop Jul 28, 2023
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.

2 participants