From ad0d0ed1f16ca9b00436f5e8b5aae32522b1c00d Mon Sep 17 00:00:00 2001 From: Waleed Date: Tue, 17 Feb 2026 10:32:32 -0800 Subject: [PATCH] feat(shortlink): add Beluga short link rewrite for hosted campaigns (#3231) --- 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 0a9ed16cd..828f95a5d 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