Closed ghost closed 2 months ago
Hello
I'm trying to setup my sitemap. I'm using dynamic routes :
sitemap: { lastmod: new Date(), routes: async () => { const { data } = await axios({ url: 'http://localhost:8080/ei/liste', method: 'GET' }) return data.map(e => `/user/${e.name}`) } }
But when my sitemap.xml is building, I got this error:
connect ECONNREFUSED 127.0.0.1:8080
Why? This url is public Thanks
Issue on your network access, not related to the module
Hello
I'm trying to setup my sitemap. I'm using dynamic routes :
sitemap: { lastmod: new Date(), routes: async () => { const { data } = await axios({ url: 'http://localhost:8080/ei/liste', method: 'GET' }) return data.map(e => `/user/${e.name}`) } }
But when my sitemap.xml is building, I got this error:
connect ECONNREFUSED 127.0.0.1:8080
Why? This url is public Thanks