Closed arifikhsan closed 4 years ago
// nuxt.config.js const axios = require('axios') { sitemap: { routes: async () => { const { data } = await axios.get('https://jsonplaceholder.typicode.com/users') return data.map((user) => `/users/${user.username}`) } } }
No you cannot.
See this related comment: nuxt-community/axios-module#242 (comment)
duplicate #25