Skip to content

Commit e70a071

Browse files
committed
FIX: Production fixes
1 parent eda7a16 commit e70a071

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

src/app/(default)/layout.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ import RedditIcon from "@/public/icons/reddit.svg";
66
import DiscordIcon from "@/public/icons/discord.svg";
77
import FooterLink from "@/src/components/footer/FooterLink";
88
import Header from "@/src/components/header/Header";
9+
import { Metadata } from "next";
10+
11+
export const metadata: Metadata = {
12+
openGraph: {
13+
siteName: "Zendoc",
14+
images: [{ url: "https://zendoc.io/icon.png" }],
15+
},
16+
};
917

1018
export default function DefaultLayout({
1119
children,

src/app/(default)/newsletter/unsubscribe/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default function UnsubscribeNewsletter() {
117117

118118
return (
119119
<div className="min-h-[calc(76vh)]">
120-
<div className="mx-auto max-w-4xl bg-white p-8 pb-12 pt-24 text-gray-800">
120+
<div className="mx-auto max-w-4xl bg-white px-4 pb-12 pt-24 text-gray-800">
121121
<h1 className="mb-6 text-3xl font-bold">Unsubscribe from Newsletter</h1>
122122

123123
<div className="mb-8">

src/app/(default)/newsletter/verified/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function VerifyNewsletter() {
8686

8787
return (
8888
<div className="min-h-[calc(76vh)]">
89-
<div className="mx-auto max-w-4xl bg-white p-8 pb-12 pt-24 text-gray-800">
89+
<div className="mx-auto max-w-4xl bg-white px-4 pb-12 pt-24 text-gray-800">
9090
<h1 className="mb-6 text-3xl font-bold">Email Verification</h1>
9191

9292
<div className="mb-10">

src/app/(default)/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export const metadata: Metadata = {
1515
title: "Zendoc - Automate your Documentation",
1616
description:
1717
"Use Zendoc to automate your documentation and keep track of your infrastructure.",
18+
openGraph: {
19+
siteName: "Zendoc",
20+
images: [{ url: "https://zendoc.io/icon.png" }],
21+
},
1822
};
1923

2024
export default function Home() {

src/lib/crypt.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ export class CryptService {
44
constructor() {}
55

66
encrypt(data: string): string | null {
7-
if (!process.env.ENCYRPTION_KEY || process.env.ENCRYPTION_KEY === "") {
7+
if (!process.env.ENCRYPTION_KEY || process.env.ENCRYPTION_KEY === "") {
88
return null;
99
}
1010

11-
const key = Buffer.from(process.env.ENCYRPTION_KEY.trim(), "hex");
11+
const key = Buffer.from(process.env.ENCRYPTION_KEY.trim(), "hex");
1212

1313
const iv = crypto.randomBytes(16);
1414
const algorithm = "aes-256-cbc";
@@ -19,7 +19,7 @@ export class CryptService {
1919
}
2020

2121
decrypt(data: string): string | null {
22-
if (!process.env.ENCYRPTION_KEY || process.env.ENCRYPTION_KEY === "") {
22+
if (!process.env.ENCRYPTION_KEY || process.env.ENCRYPTION_KEY === "") {
2323
return null;
2424
}
2525

@@ -28,7 +28,7 @@ export class CryptService {
2828
return null;
2929
}
3030

31-
const key = Buffer.from(process.env.ENCYRPTION_KEY.trim(), "hex");
31+
const key = Buffer.from(process.env.ENCRYPTION_KEY.trim(), "hex");
3232
const iv = Buffer.from(splitData[0].trim(), "hex");
3333

3434
const algorithm = "aes-256-cbc";

0 commit comments

Comments
 (0)