block miscellaneous files in this repo by returning 404s

This commit is contained in:
jake committed 2020-04-17 11:28:26 -04:00
1 parent bee307a2a0
commit 3c9899907d
6 files changed
+48 -3

No files matched your search

-1
View File
@@ -1,2 +1 @@
node_modules/
.DS_Store
+1
View File
@@ -0,0 +1 @@
<pre>404 Not Found</pre>
+2
View File
@@ -1,2 +1,4 @@
/*
X-Robots-Tag: noindex, nofollow
Content-Security-Policy: default-src 'none';
Referrer-Policy: origin
-2
View File
@@ -41,5 +41,3 @@
/git https://github.com/jakejarvis
/facebook https://www.facebook.com/jakejarvis
/twitter https://twitter.com/jakejarvis
/ https://jarv.is/
View File
Whitespace-only changes.
+45
View File
@@ -0,0 +1,45 @@
# redirect root to jarv.is
[[redirects]]
from = "/"
to = "https://jarv.is/"
status = 301
force = true
# block miscellaneous files in this repo by returning 404s. stupid way of doing
# this, but netlify.toml doesn't support glob paths like we'd want it to:
#
# https://community.netlify.com/t/immutable-images-how-do-i-specify-paths-for-all-images-in-directory-tree-in-headers/10583/4
#
# ...and netlify-shortener doesn't support placing _redirects in a subdirectory.
# TODO: submit a PR to do so. :)
[[redirects]]
from = "package.json"
to = "/404.html"
status = 404
force = true
[[redirects]]
from = "package-lock.json"
to = "/404.html"
status = 404
force = true
[[redirects]]
from = "cli.js"
to = "/404.html"
status = 404
force = true
[[redirects]]
from = "README.md"
to = "/404.html"
status = 404
force = true
[[redirects]]
from = "LICENSE.md"
to = "/404.html"
status = 404
force = true