nuxt-modules / robots

Tame the robots crawling and indexing your Nuxt site.
https://nuxtseo.com/robots
412 stars 30 forks source link

fix(middleware): call functions directly #68

Closed dargmuesli closed 1 year ago

dargmuesli commented 1 year ago

For me, the function given in the README does work without using call only. Without this change req would currently be undefined in the example:

Sitemap: (req) => `https://${req.headers.host}/sitemap.xml`
dargmuesli commented 1 year ago

Woops, duplicate of #67.