From e1d4bfdee5fe2b0b4875e8639a9d88e14b550ab7 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Tue, 30 Jan 2024 14:54:21 -0800 Subject: [PATCH] fix env url --- .env | 2 +- hooks/useSWR.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 41b9d40..82ee1e8 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -NEXT_PUBLIC_API_URL=https://api.opensauced.pizza/v2 +NEXT_PUBLIC_V2_API_URL=https://api.opensauced.pizza/v2 NEXT_PUBLIC_BETA_API_URL=https://beta.api.opensauced.pizza/v2 diff --git a/hooks/useSWR.ts b/hooks/useSWR.ts index 398e003..614c9b0 100644 --- a/hooks/useSWR.ts +++ b/hooks/useSWR.ts @@ -1,6 +1,6 @@ import { Fetcher } from "swr"; -const baseUrl = process.env.NEXT_PUBLIC_BETA_API_URL; +const baseUrl = process.env.NEXT_PUBLIC_V2_API_URL; const apiFetcher: Fetcher = async (apiUrl: string) => { const res = await fetch(`${baseUrl}/${apiUrl}`, { headers: { accept: "application/json" } });