Skip to content

Commit 4eda1ec

Browse files
committed
fix(shortlink): use rewrite instead of redirect for Beluga tracking
1 parent b4e5060 commit 4eda1ec

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

apps/sim/next.config.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,16 @@ const nextConfig: NextConfig = {
306306
}
307307
)
308308

309-
// Beluga campaign short link tracking (always registered — harmless for self-hosted)
310-
redirects.push({
311-
source: '/r/:shortCode',
312-
destination: 'https://go.trybeluga.ai/:shortCode',
313-
permanent: false,
314-
})
315-
316309
return redirects
317310
},
311+
async rewrites() {
312+
return [
313+
{
314+
source: '/r/:shortCode',
315+
destination: 'https://go.trybeluga.ai/:shortCode',
316+
},
317+
]
318+
},
318319
}
319320

320321
export default nextConfig

0 commit comments

Comments
 (0)