Our sitemap lists 38 URLs, our app directory serves 40, and the robots rule protecting one of the other two has a trailing slash

typescript dev.to

The sitemap for Notifio is derived, not typed out. Ten static entries by hand, then everything else from the arrays that generate the pages: const alertPages = ALERT_SITES.map((site) => ({ url: `${APP_URL}/alerts/${site.slug}`, ... })); const comparePages = COMPARE_TARGETS.map(...); const articlePages = ALL_ARTICLES.map((article) => ({ url: `${APP_URL}${articleHref(article)}`, ... })); That is a good pattern and I have written about it before. What it cannot tell you is whether the hand

Read Full Tutorial open_in_new
arrow_back Back to Tutorials