-
Notifications
You must be signed in to change notification settings - Fork 411
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
Sitemaps dinâmicos #797
Sitemaps dinâmicos #797
Conversation
@r3nanp is attempting to deploy a commit to the TabNews Team on Vercel. To accomplish this, @r3nanp needs to request access to the Team. Afterwards, an owner of the Team is required to accept their membership request. If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account. |
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.
import { getServerSideSitemap } from 'next-sitemap'; | ||
|
||
/** @type {import('next').GetServerSideProps} */ | ||
export async function getServerSideProps(ctx) { |
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.
Oi @r3nanp, muito legal essa contribuição!
Aí vão minhas dúvidas e considerações:
- Será que faz sentido e daria para utilizar com páginas estáticas usando
getStaticProps
? - Se eu entendi direito, está adicionando somente os 30 conteúdos da primeira página de relevantes. Será que isso não vai prejudicar o SEO ao invés de ajudar? Seria legal adicionar bem mais conteúdos. Além de adicionar as outras páginas que não são conteúdos.
- Você está passando
content.slug
comoloc
. Será que o correto não seria passar`/${content.owner_username}/${content.slug}`
? - O formato da data que está sendo passada para
lastmod
está correto? Só estou perguntando por desencargo, pois eu não verifiquei. - Deixe fixa a versão das bibliotecas utilizadas:
"next-sitemap": "3.1.29"
Bom trabalho!
Fechando o PR por inatividade 🤝 |
Add config and dependency to handle dynamic sitemaps.
Why use sitemaps on the website:
https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview
Next-sitemap lib:
https://www.npmjs.com/package/next-sitemap
Issues:
#796
#493