Skip to content

Add CNAME and robots.txt to the public folder #309

Closed
@obulat

Description

@obulat

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:

  1. Create robots.txt file in the public directory with the following content:
User-agent: *
Disallow:

(There is blank space after disallow to allow every page to be crawled)

  1. Copy CNAME file from the docs directory to the public directory.

  2. Simplify the npm:build script to remove the CNAME copying, as it will be copied automatically by VueJS.

  3. Read through the README.md and make changes regarding the build process, if necessary.

Implementation

  • I would be interested in implementing this feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions