mirror of
https://github.com/ershisan99/todolist_next.git
synced 2025-12-16 12:33:57 +00:00
fix deps, use api url from env
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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