mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 20:35:24 +00:00
remove hard coded sourcebot.app references
This commit is contained in:
parent
f853335ef1
commit
88fe84ebdd
3 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ import { headers } from "next/headers"
|
|||
import { getStripe } from "@/lib/stripe"
|
||||
import { getUser } from "@/data/user";
|
||||
import { Session } from "next-auth";
|
||||
import { STRIPE_PRODUCT_ID, CONFIG_MAX_REPOS_NO_TOKEN, EMAIL_FROM, SMTP_CONNECTION_URL } from "@/lib/environment";
|
||||
import { STRIPE_PRODUCT_ID, CONFIG_MAX_REPOS_NO_TOKEN, EMAIL_FROM, SMTP_CONNECTION_URL, AUTH_URL } from "@/lib/environment";
|
||||
import Stripe from "stripe";
|
||||
import { OnboardingSteps } from "./lib/constants";
|
||||
import { render } from "@react-email/components";
|
||||
|
|
@ -593,7 +593,7 @@ export const createInvites = async (emails: string[], domain: string): Promise<{
|
|||
const inviteLink = `${origin}/redeem?invite_id=${invite.id}`;
|
||||
const transport = createTransport(SMTP_CONNECTION_URL);
|
||||
const html = await render(InviteUserEmail({
|
||||
baseUrl: 'https://sourcebot.app',
|
||||
baseUrl: AUTH_URL,
|
||||
host: {
|
||||
name: session.user.name ?? undefined,
|
||||
email: session.user.email!,
|
||||
|
|
|
|||
|
|
@ -105,8 +105,8 @@ export function OrgCreateForm() {
|
|||
<FormLabel>Organization Domain</FormLabel>
|
||||
<FormControl>
|
||||
<div className="flex items-center">
|
||||
<span className="ml-2">staging.sourcebot.dev/</span>
|
||||
<Input placeholder="aperature-labs" {...field} className="w-1/2" />
|
||||
<span className="ml-2">.sourcebot.app</span>
|
||||
</div>
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ export const getProviders = () => {
|
|||
maxAge: 60 * 10,
|
||||
sendVerificationRequest: async ({ identifier, url, provider }) => {
|
||||
const transport = createTransport(provider.server);
|
||||
const html = await render(MagicLinkEmail({ magicLink: url, baseUrl: 'https://sourcebot.app' }));
|
||||
const html = await render(MagicLinkEmail({ magicLink: url, baseUrl: AUTH_URL }));
|
||||
const result = await transport.sendMail({
|
||||
to: identifier,
|
||||
from: provider.from,
|
||||
|
|
|
|||
Loading…
Reference in a new issue