I’m attempting to add a /robots.txt file to a quasar version 2 SPA. The problem is none of the standard Vue static file tricks seem to work here.
I have attempted to add the robots.txt file to the following folders and none seem to work.
/public/
/src/public/
/src/statics/
The first two are handled by the router, and because there is no configured route. It’ll claim it can’t find it.
The last one works, but you can’t access it from the root level. You need to navigate to https://[domain]/statics/robots.txt.
Which of course will not work for robots.txt…
I have done a bit of searching around with no luck. I’m just wondering if someone has an answer for this? Surely you must be able to host root level static files.
I can’t just add the file to the root folder manually because I’m hosting it in Cloudflare workers, and I don’t believe there is an access to the hosted files system. Unlike Azure where you could use KUDU…
Thanks in advance.
3