Browse Source

Include robots.txt to tell search engines to not index.

Jason Tarka 1 year ago
parent
commit
628be38039
2 changed files with 7 additions and 2 deletions
  1. 2 2
      web-view/package.json
  2. 5 0
      web-view/src/robots.txt

+ 2 - 2
web-view/package.json

@@ -7,11 +7,11 @@
     "test": "ts-mocha src/**/*.test.ts",
     "clean": "rm -rf build",
     "build": "npm run clean && npm run build:js && npm run build:html",
-    "build:html": "cp -r ./src/*.html ./build",
+    "build:html": "cp ./src/*.* ./build",
     "build:js": "webpack --mode=production",
     "watch:js": "webpack --mode=development --watch",
     "watch:html": "npm-watch",
-    "deploy": "npm run clean && npm run build && scp -r build/* storm:/mnt2/nginx-storage/weather/"
+    "deploy": "npm run build && scp -r build/* storm:/mnt2/nginx-storage/weather/"
   },
   "watch": {
     "build:html": {

+ 5 - 0
web-view/src/robots.txt

@@ -0,0 +1,5 @@
+User-agent: *
+Disallow: /
+
+User-agent: AdsBot-Google
+Disallow: /