static-template-nextjs icon indicating copy to clipboard operation
static-template-nextjs copied to clipboard

Added support for sitemap

Open pcibraro opened this issue 4 years ago • 3 comments

Added support for sitemaps. It's what google uses for indexing the pages in your site

pcibraro avatar May 26 '21 14:05 pcibraro

Thanks. I will change it. Pardon my ignorance, I haven't done much with Next. is it getServerSideProps more expensive or the API going to make any difference in the result ?.

pcibraro avatar May 26 '21 19:05 pcibraro

@pcibraro getServerSideProps si intended to get the data to render a page with React, if you don't plan to render something the correct place are API routes so you don't need to define an empty page and ensure you are not returning props, you can focus on the logic of the endpoint.

sergiodxa avatar May 26 '21 20:05 sergiodxa

Cool, thanks. Ok, I converted. Feel free to reject it if you don't think it worth it having it. I already added it to mine. Thanks

pcibraro avatar May 26 '21 22:05 pcibraro