From 697dcbf4b8091095875224d1d1d642677d6b284f Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 11 Jun 2024 16:55:45 +0200 Subject: [PATCH] feat(services): update baseUrl in apiRequest This commit updates the baseUrl value in the apiRequest service. It now uses the API_URL from the environment variables, or defaults to "http://localhost:3333" if the environment variable is not set. --- src/services/apiRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/apiRequest.ts b/src/services/apiRequest.ts index 2e9b6f8..fa3adac 100644 --- a/src/services/apiRequest.ts +++ b/src/services/apiRequest.ts @@ -2,7 +2,7 @@ import axios, {type AxiosResponse} from "axios"; -const baseUrl = "" +const baseUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3333' const AxiosConfigs = { authenticated: {