Skip to content

Commit a7bf9ce

Browse files
committed
feat: fix og image url
1 parent bf0ae1d commit a7bf9ce

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
API_URL=
2+
APP_URL=
23

34
FIREBASE_API_KEY=
45
FIREBASE_AUTH_DOMAIN=

app/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const geistMono = Geist_Mono({
1717
export const metadata: Metadata = {
1818
title: SITE_NAME,
1919
description: 'A simple and powerful library management system',
20+
metadataBase: new URL(process.env.APP_URL!),
2021
}
2122

2223
export default function RootLayout({

app/robots.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ export default function robots(): MetadataRoute.Robots {
1212
'/users/*',
1313
],
1414
},
15-
sitemap: 'https://librarease.org/sitemap.xml',
15+
sitemap: `${process.env.APP_URL}/sitemap.xml`,
1616
}
1717
}

next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const nextConfig: NextConfig = {
77
env: {
88
API_URL: process.env.API_URL,
99
SESSION_COOKIE_NAME: process.env.SESSION_COOKIE_NAME,
10+
APP_URL: process.env.APP_URL,
1011
},
1112

1213
rewrites: async () => {

0 commit comments

Comments
 (0)