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:
parent
278cf844c2
commit
697dcbf4b8
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user