build: temporary allow web crawler to netlify

- for web crawler to see X-Robots-Tag header
- https://www.bing.com/webmasters/help/?topicid=37c07477
This commit is contained in:
Ming Di Leom 2021-02-27 01:45:37 +00:00
parent c25639a9ea
commit 57e5c59097
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,4 @@
[context.production]
environment = { NODE_ENV = "production" }
publish = "public"
command = "npm run build"
command = "npm run build && mv public/robots-mdleom.com.txt public/robots.txt"

View File

@ -4,4 +4,3 @@
# /screenshot/* https://cdn.statically.io/screenshot/device=mobile/curben.netlify.app/:splat 200
/screenshot/* https://cdn.statically.io/screenshot/curben.netlify.app/:splat 200
/files/* https://gitlab.com/curben/blog/-/raw/site/:splat 200
/robots.txt /robots-mdleom.com.txt 200