diff --git a/apps/sim/next.config.ts b/apps/sim/next.config.ts index 828f95a5d..9ec7ab6fe 100644 --- a/apps/sim/next.config.ts +++ b/apps/sim/next.config.ts @@ -324,20 +324,17 @@ const nextConfig: NextConfig = { ) } + // Beluga campaign short link tracking + if (isHosted) { + redirects.push({ + source: '/r/:shortCode', + destination: 'https://go.trybeluga.ai/:shortCode', + permanent: false, + }) + } + return redirects }, - async rewrites() { - return [ - ...(isHosted - ? [ - { - source: '/r/:shortCode', - destination: 'https://go.trybeluga.ai/:shortCode', - }, - ] - : []), - ] - }, } export default nextConfig