Add CNAME and robots.txt to the public folder #309
Labels
💻 aspect: code
Concerns the software code in the repository
🌟 goal: addition
Addition of new feature
✨ goal: improvement
Improvement to an existing feature
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
🏁 status: ready for work
Ready for work
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 addrobots.txt
and simplify the CNAME file copying. There are four things that we need to do:robots.txt
file in thepublic
directory with the following content:(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
The text was updated successfully, but these errors were encountered: