feat(blog): use nextjs rewrite instead of vercel's

This commit is contained in:
Kim, Jimin 2024-04-27 23:34:00 +09:00
parent 9423645ee5
commit 9cc89a1a2a
Signed by: pomp
GPG key ID: 2B516173EDD492EB
2 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// https://umami.is/docs/guides/bypass-ad-blockers#proxying
async rewrites() {
return [
{
source: "/stats/:match*",
destination: "https://analytics.umami.is/:match*",
},
]
},
experimental: {
externalDir: true,
},

View file

@ -1,9 +0,0 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"rewrites": [
{
"source": "/stats/:match*",
"destination": "https://analytics.umami.is/:match*"
}
]
}