Skip to content

Commit ad0d0ed

Browse files
authored
feat(shortlink): add Beluga short link rewrite for hosted campaigns (#3231)
1 parent 8ebe753 commit ad0d0ed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/sim/next.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,18 @@ const nextConfig: NextConfig = {
326326

327327
return redirects
328328
},
329+
async rewrites() {
330+
return [
331+
...(isHosted
332+
? [
333+
{
334+
source: '/r/:shortCode',
335+
destination: 'https://go.trybeluga.ai/:shortCode',
336+
},
337+
]
338+
: []),
339+
]
340+
},
329341
}
330342

331343
export default nextConfig

0 commit comments

Comments
 (0)