MCPcopy
hub / github.com/vercel/next.js / fetchSitemap

Function fetchSitemap

test/e2e/app-dir/metadata-dynamic-routes/index.test.ts:72–74  ·  view source on GitHub ↗
(id, withExtension)

Source from the content-addressed store, hash-verified

70 it('should support generate multi sitemaps with generateSitemaps', async () => {
71 const ids = ['child0', 'child1', 'child2', 'child3']
72 function fetchSitemap(id, withExtension) {
73 return next.fetch(`/gsp/sitemap/${id}${withExtension ? `.xml` : ''}`)
74 }
75
76 // Required to have .xml extension for dynamic sitemap
77 for (const id of ids) {

Callers 1

index.test.tsFile · 0.85

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected