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

[✨ feature] robots.txt & sitemap.xml #47

Open
1 task
Fredkiss3 opened this issue Sep 1, 2023 · 2 comments
Open
1 task

[✨ feature] robots.txt & sitemap.xml #47

Fredkiss3 opened this issue Sep 1, 2023 · 2 comments
Labels
feature New feature or request good first issue Good for newcomers

Comments

@Fredkiss3
Copy link
Owner

Fredkiss3 commented Sep 1, 2023

Is your feature request related to a problem? Please describe.

for SEO reasons, i need to do these.

Describe the solution you'd like

Use this simple content for the robots.txt :

User-Agent: *
Allow: /

Sitemap: https://gh.fredkiss.dev/sitemap.xml

However for the sitemap, you'll need to use a route handler and manually generate the urlmap, for inspiration see here : https://github.com/Fredkiss3/fredkiss.dev/blob/main/app/sitemap.xml/route.ts

Describe alternatives you've considered

You could also create a static sitemap, but i want the sitemap to include all the issues pages, and dynamic pages for user profiles.

Additional context

Nope.

  • Are you willing to make a PR for this ?
@Fredkiss3 Fredkiss3 added feature New feature or request good first issue Good for newcomers labels Sep 1, 2023
@Fredkiss3 Fredkiss3 added this to Gh-next Sep 1, 2023
@Fredkiss3 Fredkiss3 pinned this issue Sep 1, 2023
@AugustinMauroy
Copy link

SItemaps is really need for web app ?

@Fredkiss3
Copy link
Owner Author

Sitemaps are needed for SEO, for any decent production app you need sitemaps, google (and in general search engine bots) use that to crawl and index your site.

Though you could say that for this app, it isn't really needed since it hasn't any use outside of being a demo, but for the same reason (demo purposes), i want to include sitemaps to show how it could be used in a "big" app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

2 participants