feat(blog): use nextjs rewrite instead of vercel's
This commit is contained in:
parent
9423645ee5
commit
9cc89a1a2a
2 changed files with 9 additions and 9 deletions
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"$schema": "https://openapi.vercel.sh/vercel.json",
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/stats/:match*",
|
||||
"destination": "https://analytics.umami.is/:match*"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue