From 8a70d1dfa9191784a2b8ac2481fe57c1f7a7228c Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Tue, 17 Feb 2026 10:05:41 -0800 Subject: [PATCH] feat(shortlink): add Beluga short link rewrite for hosted campaigns --- apps/sim/next.config.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/sim/next.config.ts b/apps/sim/next.config.ts index 0a9ed16cde5..828f95a5d18 100644 --- a/apps/sim/next.config.ts +++ b/apps/sim/next.config.ts @@ -326,6 +326,18 @@ const nextConfig: NextConfig = { return redirects }, + async rewrites() { + return [ + ...(isHosted + ? [ + { + source: '/r/:shortCode', + destination: 'https://go.trybeluga.ai/:shortCode', + }, + ] + : []), + ] + }, } export default nextConfig