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.
This commit is contained in:
Mathis H (Avnyr) 2024-06-11 16:55:45 +02:00
parent 278cf844c2
commit 697dcbf4b8
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -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: {