refactor: remove unnecessary analytics proxy
This commit is contained in:
parent
8be3ae370f
commit
1281a1fdc6
4 changed files with 2 additions and 21 deletions
|
@ -1,14 +1,5 @@
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
// https://umami.is/docs/guides/bypass-ad-blockers#proxying
|
|
||||||
async rewrites() {
|
|
||||||
return [
|
|
||||||
{
|
|
||||||
source: "/stats/:match*",
|
|
||||||
destination: "https://umami.developomp.com/:match*",
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
experimental: {
|
experimental: {
|
||||||
externalDir: true,
|
externalDir: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -63,9 +63,8 @@ export default function RootLayout({
|
||||||
/>
|
/>
|
||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#000000" />
|
||||||
<script
|
<script
|
||||||
async
|
|
||||||
defer
|
defer
|
||||||
src="/stats/script.js"
|
src="https://umami.developomp.com/script.js"
|
||||||
data-website-id="361a9f07-a09b-49a0-b7e4-f1fc7caff9e2"
|
data-website-id="361a9f07-a09b-49a0-b7e4-f1fc7caff9e2"
|
||||||
></script>
|
></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -24,9 +24,8 @@
|
||||||
<meta property="og:image" content="/favicon.svg" />
|
<meta property="og:image" content="/favicon.svg" />
|
||||||
|
|
||||||
<script
|
<script
|
||||||
async
|
|
||||||
defer
|
defer
|
||||||
src="/stats/script.js"
|
src="https://umami.developomp.com/script.js"
|
||||||
data-website-id="783ea016-943a-47a4-b7e7-a9b9fbd786a9"
|
data-website-id="783ea016-943a-47a4-b7e7-a9b9fbd786a9"
|
||||||
></script>
|
></script>
|
||||||
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"rewrites": [
|
|
||||||
{
|
|
||||||
"source": "/stats/:match*",
|
|
||||||
"destination": "https://umami.developomp.com/:match*"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue