Skip to content

Commit

Permalink
Removed usage of marketing
Browse files Browse the repository at this point in the history
  • Loading branch information
LobeTia committed Oct 2, 2024
1 parent 3dc6bfd commit dde37f6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 18 deletions.
6 changes: 0 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ STRIPE_PRIVATE_KEY=
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=

# Marketing settings
MARKETING_NAME=
MARKETING_WEBSITE_URL=
MARKETING_EMAIL_NAME=
MARKETING_EMAIL_ADDRESS=

# Email sending
EMAIL_SERVER_USER=
EMAIL_SERVER_PASSWORD=
Expand Down
2 changes: 1 addition & 1 deletion src/app/documents/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function LegalLayout({
<div className={"flex items-center"}>
<Image src={logo} alt={"logo"} width={42} className={"mr-4"} />
<span className={"inline text-sm font-bold text-gray-200"}>
{process.env.MARKETING_NAME}
{"MARKETING_NAME"}
</span>
</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/members/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default async function RootLayout({
className="flex items-center gap-2 font-semibold"
>
<Image src={logo} alt={"logo"} width={32} className={"mr-1"} />
{process.env.MARKETING_NAME}
{"MARKETING_NAME"}
</Link>
</div>
<div className="flex-1">
Expand Down
4 changes: 2 additions & 2 deletions src/app/signup/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function SignUpLayout({
</div>
<div className="container relative hidden h-dvh flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0">
<Link
href={process.env.MARKETING_WEBSITE_URL!}
href={"MARKETING_WEBSITE_URL"}
className={cn(
buttonVariants({ variant: "ghost" }),
"absolute right-4 top-4 md:right-8 md:top-8",
Expand All @@ -42,7 +42,7 @@ export default function SignUpLayout({
<div className="absolute inset-0 bg-zinc-900" />
<div className="relative z-20 flex items-center text-lg font-medium">
<Image src={logoWhite} alt={"logo"} width={42} className={"mr-3"} />
{process.env.MARKETING_NAME}
{"MARKETING_NAME"}
</div>
<div className="relative z-20 mt-auto">
<blockquote className="space-y-2">
Expand Down
6 changes: 3 additions & 3 deletions src/emails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Email() {
src={`${baseUrl}/static/org-logo.png`}
width={48}
height={48}
alt={process.env.MARKETING_EMAIL_NAME}
alt={"MARKETING_EMAIL_NAME"}
/>
<Heading style={heading}>🪄 Your magic link</Heading>
<Section style={body}>
Expand All @@ -54,8 +54,8 @@ export default function Email() {
margin: "20px 0",
}}
/>
<Text style={footer}>{process.env.MARKETING_EMAIL_NAME}</Text>
<Text style={footer}>{process.env.MARKETING_EMAIL_ADDRESS}</Text>
<Text style={footer}>{"MARKETING_EMAIL_NAME"}</Text>
<Text style={footer}>{"MARKETING_EMAIL_ADDRESS"}</Text>
</Container>
</Body>
</Html>
Expand Down
5 changes: 0 additions & 5 deletions src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ export const env = createEnv({
EMAIL_SERVER_PASSWORD: process.env.EMAIL_SERVER_PASSWORD,
EMAIL_SERVER_PORT: process.env.EMAIL_SERVER_PORT,
EMAIL_SERVER_USER: process.env.EMAIL_SERVER_USER,
MARKETING_NAME: process.env.MARKETING_NAME,
MARKETING_WEBSITE_URL: process.env.MARKETING_WEBSITE_URL,
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY:
process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
Expand Down Expand Up @@ -61,9 +59,6 @@ export const env = createEnv({
EMAIL_SERVER_PORT: z.string().optional(),
EMAIL_SERVER_USER: z.string().optional(),

MARKETING_NAME: z.string().optional(),
MARKETING_WEBSITE_URL: z.string().optional(),

NEXTAUTH_SECRET:
process.env.NODE_ENV === "production"
? z.string()
Expand Down

0 comments on commit dde37f6

Please sign in to comment.