feat(shortlink): add Beluga short link rewrite for hosted campaigns (#3231)

This commit is contained in:
Waleed
2026-02-17 10:32:32 -08:00
committed by GitHub
parent 8ebe753bd8
commit ad0d0ed1f1

View File

@@ -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