mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-18 10:22:00 -05:00
feat(shortlink): add Beluga short link rewrite for hosted campaigns (#3231)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user