Description
Problem
Currently, Chooser's SEO score in Google Chrome's Lighthouse report is lowered because we don't have a robots.txt
file.
Another problem is that we need to copy CNAME file to the docs folder to make sure that the beta Chooser is deployed properly. Currently, it is done using the npm:build
script, but it makes the script unnecessarily long, and there is a better solution.
Description
VueJS copies everything from the public
directory into the final build directory. We can use this behavior to add robots.txt
and simplify the CNAME file copying. There are four things that we need to do:
- Create
robots.txt
file in thepublic
directory with the following content:
User-agent: *
Disallow:
(There is blank space after disallow to allow every page to be crawled)
-
Copy
CNAME
file from thedocs
directory to thepublic
directory. -
Simplify the
npm:build
script to remove the CNAME copying, as it will be copied automatically by VueJS. -
Read through the
README.md
and make changes regarding the build process, if necessary.
Implementation
- I would be interested in implementing this feature.