From ff629691a5a0a60a6d7a3d101283e398b3c6894a Mon Sep 17 00:00:00 2001 From: Unchained Date: Tue, 31 Mar 2026 07:11:59 +0200 Subject: [PATCH] fix(analytics): fix OpenPanel script rewrite URL --- next.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/next.config.ts b/next.config.ts index 19bdd73..fb95767 100644 --- a/next.config.ts +++ b/next.config.ts @@ -8,6 +8,7 @@ const nextConfig: NextConfig = { async rewrites() { const rybbitHost = process.env.NEXT_PUBLIC_RYBBIT_HOST || "https://rybbit.nodecrew.me"; const openpanelUrl = process.env.OPENPANEL_API_URL || "https://op.nodecrew.me/api"; + const openpanelScriptUrl = "https://op.nodecrew.me"; return [ { source: "/api/script.js", @@ -35,7 +36,7 @@ const nextConfig: NextConfig = { }, { source: "/api/op/op1.js", - destination: `${openpanelUrl}/op1.js`, + destination: `${openpanelScriptUrl}/op1.js`, }, ]; },