mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-08-25 16:05:39 -04:00
reverse proxy to umami via middleware
This commit is contained in:
+1
-11
@@ -42,18 +42,8 @@ const nextConfig: NextConfig = {
|
||||
],
|
||||
rewrites: async () => ({
|
||||
beforeFiles: [
|
||||
// https://umami.is/docs/guides/running-on-vercel#proxy-umami-analytics-via-vercel
|
||||
{
|
||||
source: "/_stream/u/script.js",
|
||||
destination: `${process.env.NEXT_PUBLIC_UMAMI_HOST || "https://cloud.umami.is"}/script.js`,
|
||||
},
|
||||
{
|
||||
source: "/_stream/u/api/:path*",
|
||||
destination: `${process.env.NEXT_PUBLIC_UMAMI_HOST || "https://cloud.umami.is"}/api/:path*`,
|
||||
},
|
||||
|
||||
// https://github.com/jakejarvis/tweets
|
||||
{
|
||||
// https://github.com/jakejarvis/tweets
|
||||
source: "/tweets/:path*",
|
||||
destination: "https://tweets-khaki.vercel.app/:path*",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user