1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 14:45:31 -04:00

clean up old redirects

This commit is contained in:
2022-06-21 05:13:03 -04:00
parent fdae751b58
commit 00e3870998
4 changed files with 169 additions and 172 deletions

View File

@@ -87,10 +87,12 @@ module.exports = (phase, { defaultConfig }) => {
source: "/:path(.*)",
headers: [
config.onionDomain && {
// https://gitweb.torproject.org/tor-browser-spec.git/tree/proposals/100-onion-location-header.txt
key: "Onion-Location",
value: `${config.onionDomain}/:path*`,
},
{
// 🥛
key: "x-got-milk",
value: "2%",
},
@@ -142,12 +144,8 @@ module.exports = (phase, { defaultConfig }) => {
destination: "/notes/cool-bash-tricks-for-your-terminal-dotfiles/",
permanent: true,
},
// misc. crap:
{ source: "/resume/", destination: "/static/resume.pdf", permanent: false },
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: false },
{ source: "/jarvis.asc", destination: "/pubkey.asc", permanent: true },
{ source: "/scrabble/:path*", destination: "https://jakejarvis.github.io/scrabble/:path*", permanent: false },
],
};