From 975d2e1d5830a69436832b1895786594064c5258 Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Thu, 3 Oct 2024 21:36:47 +0200 Subject: [PATCH] feat(app): use PROD env var instead of NODE_ENV --- apps/app/src/utils/queryFetch.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/app/src/utils/queryFetch.ts b/apps/app/src/utils/queryFetch.ts index c249b67..c7e9978 100644 --- a/apps/app/src/utils/queryFetch.ts +++ b/apps/app/src/utils/queryFetch.ts @@ -7,10 +7,9 @@ type Fetch = { token?: string | null } -const url = - import.meta.env.NODE_ENV === 'production' - ? 'https://api.boring.tools' - : 'http://localhost:3000' +const url = import.meta.env.PROD + ? 'https://api.boring.tools' + : 'http://localhost:3000' export const queryFetch = async ({ path, method, data, token }: Fetch) => { const response = await axios({