nuxt-modules/robots

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?

If he was using nuxt bridge, he would be using nuxt-edge and not nuxt library. He is using nuxt 2 without the bridge.
image

This issue still persists for me. Using latest robots version and Nuxt3.

Locally available, not in production -> results in 404 error.