diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..14267e9 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / \ No newline at end of file diff --git a/snowpack.config.js b/snowpack.config.js index db70532..2cba93b 100644 --- a/snowpack.config.js +++ b/snowpack.config.js @@ -11,10 +11,13 @@ module.exports = { public: "/", src: "/dist", }, - routes: [{ match: "routes", src: ".*", dest: "/index.html" }], optimize: { bundle: true, }, + routes: [ + { match: "routes", src: "robots.txt", dest: "/robots.txt" }, + { match: "routes", src: ".*", dest: "/index.html" }, + ], devOptions: { open: "none", }, diff --git a/tsconfig.json b/tsconfig.json index e8b8cfa..7264e4b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,7 @@ "forceConsistentCasingInFileNames": true, "jsx": "react-jsx", "lib": ["DOM"], - "module": "ES2020" + "module": "ES2020", + "moduleResolution": "node" } }