1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 15:16:21 -04:00
jarv.is/netlify.toml

79 lines
1.7 KiB
TOML

[build]
command = "yarn build"
publish = "public"
[context.deploy-preview]
command = "yarn build:preview"
publish = "public"
[context.production.environment]
HUGO_VERSION = "0.60.1"
HUGO_ENV = "production"
[context.deploy-preview.environment]
HUGO_VERSION = "0.60.1"
HUGO_ENV = "development"
# The most important headers and redirects are specified in the _headers and
# _redirects files generated by Hugo. These are additional custom rules.
# Redirect default Netlify subdomain to primary domain:
[[redirects]]
from = "https://jakejarvis.netlify.com/*"
to = "https://jarv.is/:splat"
status = 301
force = true
# Support ancient RSS subscriptions from WordPress era:
[[redirects]]
from = "/feed"
to = "/index.xml"
status = 301
[[redirects]]
from = "/rss"
to = "/index.xml"
status = 301
# Mirror Y2K site from GitHub Pages:
[[redirects]]
from = "/y2k/*"
to = "https://jakejarvis.github.io/y2k/:splat"
status = 200
# Legacy GitHub Pages subdirectory behavior:
[[redirects]]
from = "/ios-trackers/*"
to = "https://jakejarvis.github.io/ios-trackers/:splat"
status = 200
[[redirects]]
from = "/scrabble/*"
to = "https://jakejarvis.github.io/scrabble/:splat"
status = 200
[[redirects]]
from = "/comp20/*"
to = "https://jakejarvis.github.io/comp20/:splat"
status = 200
[[redirects]]
from = "/awesome/*"
to = "https://jakejarvis.github.io/synonyms-for-awesome/:splat"
status = 200
# H A C K E R M A N ( ͡° ͜ʖ ͡°)
[[redirects]]
from = "*/wp-login.php"
to = "/h4x0rz.gif"
status = 200
[[redirects]]
from = "*/wp-admin/*"
to = "/h4x0rz.gif"
status = 200
[[redirects]]
from = "/login"
to = "/h4x0rz.gif"
status = 200
[[redirects]]
from = "/login.php"
to = "/h4x0rz.gif"
status = 200