Skip to content

Commit

Permalink
Fix missing https:// part when using vercel preview environment
Browse files Browse the repository at this point in the history
  • Loading branch information
tomitheninja committed Sep 14, 2024
1 parent d23592e commit 4000b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/config/environment.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fallbackToPreviewFrontend =

export const FRONTEND_CALLBACK =
!process.env.FRONTEND_CALLBACK && fallbackToPreviewFrontend
? process.env.VERCEL_BRANCH_URL!
? `https://${process.env.VERCEL_BRANCH_URL!}`
: env.get('FRONTEND_CALLBACK').required().asString();

export const JWT_SECRET = env.get('JWT_SECRET').required().asString();
Expand Down

0 comments on commit 4000b16

Please sign in to comment.