mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 06:45:23 -04:00
narrow down redirect/rewrite regexes
This commit is contained in:
parent
4f5dcbe04d
commit
327e10e982
@ -11,7 +11,7 @@
|
|||||||
--colors-super-light: #f4f4f4;
|
--colors-super-light: #f4f4f4;
|
||||||
--colors-super-duper-light: #fbfbfb;
|
--colors-super-duper-light: #fbfbfb;
|
||||||
--colors-link: #0e6dc2;
|
--colors-link: #0e6dc2;
|
||||||
--colors-link-underline: rgb(14 109 194 / 40%);
|
--colors-link-underline: #a6c5e7;
|
||||||
--colors-success: #44a248;
|
--colors-success: #44a248;
|
||||||
--colors-error: #ff1b1b;
|
--colors-error: #ff1b1b;
|
||||||
--colors-warning: #f78200;
|
--colors-warning: #f78200;
|
||||||
@ -20,7 +20,7 @@
|
|||||||
[data-theme="dark"] {
|
[data-theme="dark"] {
|
||||||
--colors-background-inner: #1e1e1e;
|
--colors-background-inner: #1e1e1e;
|
||||||
--colors-background-outer: #252525;
|
--colors-background-outer: #252525;
|
||||||
--colors-background-header: rgb(37 37 37 / 85%);
|
--colors-background-header: rgb(37 37 37 / 70%);
|
||||||
--colors-text: #f1f1f1;
|
--colors-text: #f1f1f1;
|
||||||
--colors-medium-dark: #d7d7d7;
|
--colors-medium-dark: #d7d7d7;
|
||||||
--colors-medium: #b1b1b1;
|
--colors-medium: #b1b1b1;
|
||||||
@ -30,7 +30,7 @@
|
|||||||
--colors-super-light: #272727;
|
--colors-super-light: #272727;
|
||||||
--colors-super-duper-light: #1f1f1f;
|
--colors-super-duper-light: #1f1f1f;
|
||||||
--colors-link: #88c7ff;
|
--colors-link: #88c7ff;
|
||||||
--colors-link-underline: rgb(136 199 255 / 40%);
|
--colors-link-underline: #496278;
|
||||||
--colors-success: #78df55;
|
--colors-success: #78df55;
|
||||||
--colors-error: #ff5151;
|
--colors-error: #ff5151;
|
||||||
--colors-warning: #f2b702;
|
--colors-warning: #f2b702;
|
||||||
|
@ -87,7 +87,7 @@ const nextConfig: NextConfig = {
|
|||||||
source: "/tweets(|/.*)",
|
source: "/tweets(|/.*)",
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
key: "X-Robots-Tag",
|
key: "x-robots-tag",
|
||||||
value: "noindex, nofollow, nosnippet",
|
value: "noindex, nofollow, nosnippet",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -96,8 +96,8 @@ const nextConfig: NextConfig = {
|
|||||||
rewrites: async () => [
|
rewrites: async () => [
|
||||||
{
|
{
|
||||||
// https://umami.is/docs/guides/running-on-vercel#proxy-umami-analytics-via-vercel
|
// https://umami.is/docs/guides/running-on-vercel#proxy-umami-analytics-via-vercel
|
||||||
source: "/_stream/u/:path*",
|
source: "/_stream/u/:path(script.js|api/send)",
|
||||||
destination: `${process.env.NEXT_PUBLIC_UMAMI_URL || "https://cloud.umami.is"}/:path*`,
|
destination: `${process.env.NEXT_PUBLIC_UMAMI_URL || "https://cloud.umami.is"}/:path`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// https://github.com/jakejarvis/tweets
|
// https://github.com/jakejarvis/tweets
|
||||||
@ -125,28 +125,13 @@ const nextConfig: NextConfig = {
|
|||||||
// mastodon via subdomain:
|
// mastodon via subdomain:
|
||||||
// https://docs.joinmastodon.org/admin/config/#web_domain
|
// https://docs.joinmastodon.org/admin/config/#web_domain
|
||||||
{
|
{
|
||||||
source: "/.well-known/host-meta:path*",
|
source: "/.well-known/:path(host-meta|webfinger|nodeinfo)",
|
||||||
destination: "https://fediverse.jarv.is/.well-known/host-meta:path*",
|
destination: "https://fediverse.jarv.is/.well-known/:path",
|
||||||
permanent: true,
|
permanent: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/.well-known/webfinger:path*",
|
source: "/@jake:path(/?|/.*)",
|
||||||
destination: "https://fediverse.jarv.is/.well-known/webfinger:path*",
|
destination: "https://fediverse.jarv.is/@jake:path",
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/.well-known/nodeinfo:path*",
|
|
||||||
destination: "https://fediverse.jarv.is/.well-known/nodeinfo:path*",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/@jake",
|
|
||||||
destination: "https://fediverse.jarv.is/@jake",
|
|
||||||
permanent: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
source: "/@jake/:path*",
|
|
||||||
destination: "https://fediverse.jarv.is/@jake/:path*",
|
|
||||||
permanent: true,
|
permanent: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -154,8 +139,8 @@ const nextConfig: NextConfig = {
|
|||||||
{ source: "/index.xml", destination: "/feed.xml", permanent: true },
|
{ source: "/index.xml", destination: "/feed.xml", permanent: true },
|
||||||
{ source: "/feed", destination: "/feed.xml", permanent: true },
|
{ source: "/feed", destination: "/feed.xml", permanent: true },
|
||||||
{ source: "/rss", destination: "/feed.xml", permanent: true },
|
{ source: "/rss", destination: "/feed.xml", permanent: true },
|
||||||
{ source: "/blog/:path*", destination: "/notes", permanent: true },
|
{ source: "/blog/(.*)", destination: "/notes", permanent: true },
|
||||||
{ source: "/archives/:path*", destination: "/notes", permanent: true },
|
{ source: "/archives/(.*)", destination: "/notes", permanent: true },
|
||||||
{ source: "/resume", destination: "/static/resume.pdf", permanent: false },
|
{ source: "/resume", destination: "/static/resume.pdf", permanent: false },
|
||||||
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: false },
|
{ source: "/resume.pdf", destination: "/static/resume.pdf", permanent: false },
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user