Closed workingxx92 closed 3 years ago
Hello, I need access req.headers.host before call.
const axios = require('axios')
{ sitemap: { routes: async () => { access req.headers.host at here const { data } = await axios.get('https://jsonplaceholder.typicode.com/users') return data.map((user) => /users/${user.username}) } } } Thank
/users/${user.username}
@danielroe . Can you help me? Thank
@workingxx92 it's not possible, according the current cache system of the module.
duplicate with #111
Hello, I need access req.headers.host before call.
const axios = require('axios')
{ sitemap: { routes: async () => { access req.headers.host at here const { data } = await axios.get('https://jsonplaceholder.typicode.com/users') return data.map((user) =>
/users/${user.username}
) } } } Thank