mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 21:05:22 +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 { getStripe } from "@/lib/stripe"
|
||||||
import { getUser } from "@/data/user";
|
import { getUser } from "@/data/user";
|
||||||
import { Session } from "next-auth";
|
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 Stripe from "stripe";
|
||||||
import { OnboardingSteps } from "./lib/constants";
|
import { OnboardingSteps } from "./lib/constants";
|
||||||
import { render } from "@react-email/components";
|
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 inviteLink = `${origin}/redeem?invite_id=${invite.id}`;
|
||||||
const transport = createTransport(SMTP_CONNECTION_URL);
|
const transport = createTransport(SMTP_CONNECTION_URL);
|
||||||
const html = await render(InviteUserEmail({
|
const html = await render(InviteUserEmail({
|
||||||
baseUrl: 'https://sourcebot.app',
|
baseUrl: AUTH_URL,
|
||||||
host: {
|
host: {
|
||||||
name: session.user.name ?? undefined,
|
name: session.user.name ?? undefined,
|
||||||
email: session.user.email!,
|
email: session.user.email!,
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,8 @@ export function OrgCreateForm() {
|
||||||
<FormLabel>Organization Domain</FormLabel>
|
<FormLabel>Organization Domain</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
|
<span className="ml-2">staging.sourcebot.dev/</span>
|
||||||
<Input placeholder="aperature-labs" {...field} className="w-1/2" />
|
<Input placeholder="aperature-labs" {...field} className="w-1/2" />
|
||||||
<span className="ml-2">.sourcebot.app</span>
|
|
||||||
</div>
|
</div>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ export const getProviders = () => {
|
||||||
maxAge: 60 * 10,
|
maxAge: 60 * 10,
|
||||||
sendVerificationRequest: async ({ identifier, url, provider }) => {
|
sendVerificationRequest: async ({ identifier, url, provider }) => {
|
||||||
const transport = createTransport(provider.server);
|
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({
|
const result = await transport.sendMail({
|
||||||
to: identifier,
|
to: identifier,
|
||||||
from: provider.from,
|
from: provider.from,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue