mirror of
https://github.com/ershisan99/todolist_next.git
synced 2026-01-24 05:12:08 +00:00
fix deps, use api url from env
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user