From 33ff45c4c5be13419b80a6ea4f21a460138a43c3 Mon Sep 17 00:00:00 2001 From: Abengkris Date: Fri, 29 Nov 2024 20:30:23 +0700 Subject: [PATCH] fix api nostr --- src/components/LatestNote.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LatestNote.astro b/src/components/LatestNote.astro index b8ef02e..32c797e 100644 --- a/src/components/LatestNote.astro +++ b/src/components/LatestNote.astro @@ -19,7 +19,7 @@ config(); let latestNote: NostrEvent | null = null; let errorMessage: string | null = null; -const baseUrl = import.meta.env.PUBLIC_PROD_URL || "http://localhost:1234"; +const baseUrl = process.env.PUBLIC_PROD_URL || "http://localhost:1234"; // Fetch data from API try {