We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f335bb + 04579b0 commit 1c5db12Copy full SHA for 1c5db12
apps/portal/src/app/lib/auth.ts
@@ -28,7 +28,7 @@ export const auth = betterAuth({
28
async sendInvitationEmail(data) {
29
const isLocalhost = process.env.NODE_ENV === 'development';
30
const protocol = isLocalhost ? 'http' : 'https';
31
- const domain = isLocalhost ? 'localhost:3000' : 'app.trycomp.ai';
+ const domain = isLocalhost ? 'localhost:3000' : process.env.NEXT_PUBLIC_BETTER_AUTH_URL!;
32
const inviteLink = `${protocol}://${domain}/invite/${data.invitation.id}`;
33
34
const url = `${protocol}://${domain}/auth`;
0 commit comments