From 56b996c3d15f10047101b59737462172daf3da8b Mon Sep 17 00:00:00 2001 From: braddf Date: Wed, 8 May 2024 16:48:06 +0100 Subject: [PATCH] Add env var for api url --- apps/quartz-app/src/data/apiClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/quartz-app/src/data/apiClient.ts b/apps/quartz-app/src/data/apiClient.ts index cbbaa355..aac9bf61 100644 --- a/apps/quartz-app/src/data/apiClient.ts +++ b/apps/quartz-app/src/data/apiClient.ts @@ -2,7 +2,7 @@ import createClient from "openapi-fetch"; import { paths } from "@/src/types/schema"; const client = createClient({ - baseUrl: "https://api-dev.quartz.energy/", + baseUrl: process.env.NEXT_PUBLIC_API_URL || "https://api-dev.quartz.energy/", // "http://localhost:8000/", // headers: { // Authorization: `Bearer ${process.env.API_KEY}`,