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

BIN
bun.lockb

Binary file not shown.

View File

@@ -10,7 +10,9 @@
"format": "prettier --write ."
},
"dependencies": {
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-toggle-group": "^1.1.0",
"@tanstack/react-query": "^5.51.23",

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