fix(analytics): fix OpenPanel script rewrite URL
Some checks failed
Build and Deploy / build (push) Has been cancelled

This commit is contained in:
Unchained
2026-03-31 07:11:59 +02:00
parent 1cdda7db3c
commit ff629691a5

View File

@@ -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`,
},
];
},