Skip to content

Commit

Permalink
fix: vercel path
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Jan 17, 2025
1 parent 527e99d commit 54dca39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/curve-ui-kit/src/shared/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function getAppRoot(path: 'dex' | 'dao' | 'lend' | 'loan', developmentPor
if (host.endsWith('vercel.app')) {
const branchPrefix = /curve-dapp(-lend|-crvusd|-dao)?-(.*)-curvefi.vercel.app/.exec(host)?.[2]
if (branchPrefix) {
return `https://curve-dapp-${branchPrefix}-curvefi.vercel.app`
return `https://curve-dapp-${branchPrefix}-curvefi.vercel.app/${path}`
}
return `https://${host}/${path}`
}
Expand Down

0 comments on commit 54dca39

Please sign in to comment.