nuxt-community / sitemap-module

Sitemap Module for Nuxt 2
https://sitemap.nuxtjs.org
MIT License
689 stars 127 forks source link

connect ECONNREFUSED #256

Closed ghost closed 2 months ago

ghost commented 2 years 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

NicoPennec commented 2 months ago

Issue on your network access, not related to the module