From 258280730b4a6e2a2897a75cbce7090615718c2f Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 8 Sep 2024 19:32:25 +0200 Subject: [PATCH] fix: fix references to non-existent environment variable --- app/(root)/layout.tsx | 2 +- app/layout.tsx | 2 +- app/rss.xml/route.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(root)/layout.tsx b/app/(root)/layout.tsx index b23ccd9..9efac58 100644 --- a/app/(root)/layout.tsx +++ b/app/(root)/layout.tsx @@ -14,7 +14,7 @@ export const metadata: Metadata = { title: "SVR.JS - a web server running on Node.JS", description: "Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.JS. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).", - url: `${process.env.WEBSITE_URL}`, + url: `${process.env.NEXT_PUBLIC_WEBSITE_URL}`, type: "website", images: [ { diff --git a/app/layout.tsx b/app/layout.tsx index 9b20abb..e116006 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -18,7 +18,7 @@ export const metadata: Metadata = { title: "SVR.JS - a web server running on Node.JS", description: "Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.JS. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).", - url: `${process.env.WEBSITE_URL}`, + url: `${process.env.NEXT_PUBLIC_WEBSITE_URL}`, type: "website", images: [ { diff --git a/app/rss.xml/route.ts b/app/rss.xml/route.ts index 818c146..4b42e73 100644 --- a/app/rss.xml/route.ts +++ b/app/rss.xml/route.ts @@ -9,7 +9,7 @@ export async function GET() { // Define the site URL based on the environment const SITE_URL = process.env.NODE_ENV === "production" - ? `${process.env.WEBSITE_URL}` + ? `${process.env.NEXT_PUBLIC_WEBSITE_URL}` : "http://localhost:3000"; const postsQuery = `*[_type == 'blog'] | order(_createdAt desc) {