robots.txt 404 error
aswinghosh-2hats opened this issue · 5 comments
I can access robots.txt in local environment but gives 404 error in server (vercel)
"devDependencies": {
-------------------
"@nuxtjs/robots": "^2.5.0",
"nuxt": "^2.15.8",
}
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?
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.