robots icon indicating copy to clipboard operation
robots copied to clipboard

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

Open julifredes opened this issue 3 years ago • 3 comments

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?

julifredes avatar Jul 29 '22 13:07 julifredes

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

dargmuesli avatar Jul 29 '22 20:07 dargmuesli

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

julifredes avatar Aug 01 '22 10:08 julifredes

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

dargmuesli avatar Oct 07 '22 15:10 dargmuesli