diff --git a/next.config.ts b/next.config.ts index fb95767..a8d2bf3 100644 --- a/next.config.ts +++ b/next.config.ts @@ -34,10 +34,6 @@ const nextConfig: NextConfig = { source: "/api/op/track", destination: `${openpanelUrl}/track`, }, - { - source: "/api/op/op1.js", - destination: `${openpanelScriptUrl}/op1.js`, - }, ]; }, images: { diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 8f2f031..92c7fe6 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -54,8 +54,8 @@ export default async function LocaleLayout({ clientId={process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID || ""} trackScreenViews={true} trackOutgoingLinks={true} - apiUrl="/api/op" - scriptUrl="/api/op/op1.js" + apiUrl="/api/op/track" + scriptUrl="/api/op1" />