Closed aswinghosh-2hats closed 2 years ago
Same issue for me.
Works when running npm run dev
and npm run build | npm run start
locally, but neither work on the server. Also tested in development/production mode and, again, both work locally.
Server is nginx
"@nuxtjs/robots": "^2.5.0", "nuxt": "2.15.8",
Just to clarify, you are not using Nuxt bridge?
If he was using nuxt bridge, he would be using nuxt-edge and not nuxt library. He is using nuxt 2 without the bridge.
Hi @aswinghosh-2hats
Its works https://nuxt-robots-example.vercel.app/robots.txt https://github.com/ricardogobbosouza/nuxt-robots-example
You configured vercel.json
?
https://github.com/ricardogobbosouza/nuxt-robots-example/blob/main/vercel.json
Does the problem still persist?
This issue still persists for me. Using latest robots version and Nuxt3.
Locally available, not in production -> results in 404 error.
I can access robots.txt in local environment but gives 404 error in server (vercel)
"devDependencies": {
}