Answer by Gabe Roffman for Dynamic sitemap for NextJs 13
I was having this issue until I realized that it was that I had a basePath set in the next.config.js and I was not using that in my request. So I found that after I fixed my request url to include the...
View ArticleAnswer by Yilmaz for Dynamic sitemap for NextJs 13
sitemap.ts file should be in the app directory.Then you have to build the app.npm run buildand then runnpm run start
View ArticleAnswer by Flavio Scimeca for Dynamic sitemap for NextJs 13
Try replacing URL with the const rootUrl.const rootUrl = "http://localhost:3000"const blogPosts = blogPostEntries.map((entry: TransformedEntry) => ({ url: `${rootUrl}/blog/${entry.id}`,...
View ArticleDynamic sitemap for NextJs 13
I am following this guide to create a dynamic sitemap for NextJs 13.4.6 https://claritydev.net/blog/nextjs-dynamic-sitemap-pages-app-directoryThe issue I am having is the bottom of the article is where...
View Article