nuxt-modules / robots

Tame the robots crawling and indexing your Nuxt site.
https://nuxtseo.com/robots
MIT License
424 stars 34 forks source link

fix: only prerender for static target #75

Closed dargmuesli closed 2 years ago

dargmuesli commented 2 years ago

Currently, the /robots.txt route is prerendered even for server deployments. A demo for that behavior can be observed in the first commit of this PR which adds a test that currently fails.

Closes #76.

codecov[bot] commented 2 years ago

Codecov Report

Merging #75 (bc66236) into main (0cdf4ee) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
+ Coverage   98.38%   98.43%   +0.05%     
==========================================
  Files           1        1              
  Lines          62       64       +2     
  Branches        9       10       +1     
==========================================
+ Hits           61       63       +2     
  Partials        1        1              
Impacted Files Coverage Δ
src/module.ts 98.43% <100.00%> (+0.05%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.