nuxt-modules / robots

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

Is there any way to make the robots.txt dynamic? #60

Closed julifredes closed 1 year ago

julifredes commented 2 years ago

From the nuxt.config.js file I get the robots dynamically consuming them from our backend. The problem that we have detected is that the robots are indeed generated with the deployment, but when doing an update of this data on the backend side, they are not reflected in robots.txt. Among the conclusions we have drawn, we know that the robots are generated when the project is compiled, making it really is not dynamic to obtain this data and forces us to deploy the project to be updated. Is this correct? What suggestion or recommendation would you give us to solve the generation of robots dynamically obtaining the information from the backend?

dargmuesli commented 2 years ago

Was this question posted before or after the v3 prerelease? https://github.com/nuxt-community/robots-module#robots-config should give an answer.

julifredes commented 2 years ago

Was this question posted before or after the v3 prerelease? https://github.com/nuxt-community/robots-module#robots-config should give an answer.

Before the v3 prerelease

dargmuesli commented 1 year ago

If v3 works for you, you might want to close this issue.