fix deps, use api url from env

This commit is contained in:
2024-08-15 16:15:28 +02:00
parent 7a9d0d7f16
commit 0fb0e3e4cc
3 changed files with 3 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ const mutex = new Mutex()
let refreshedAt: number | null = null
export const todolistApiInstance = axios.create({
baseURL: "http://localhost:3000",
baseURL: process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:3000",
})
async function refreshAccessToken(): Promise<string> {