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