Closed dargmuesli closed 2 years ago
👍 Bumping the issue - facing this problem as well. Running SSR Nuxt 3 and build command prerenders robots.txt, resulting in in correct Sitemap behaviour
Just add a :+1: to the first post to show your support! :clap:
Currently a built nuxt page using this module has its
robots.txt
prerendered. That means that e.g. aSitemap: (req) => ...req.headers.host...
function has its host set tolocalhost
at build time and does not allow dynamic content at deployment.In PR #75 I changed that behavior to only prerender the route for
target: static
. I added tests to ensure no unwanted regressions.