more backend api work
This commit is contained in:
@@ -42,7 +42,7 @@ api.interceptors.response.use(
|
||||
|
||||
// Use relative path in production, full URL in development
|
||||
const refreshUrl = process.env.NODE_ENV === 'production'
|
||||
? '/refresh-token'
|
||||
? '/api/refresh-token'
|
||||
: `${API_BASE_URL}/refresh-token`
|
||||
|
||||
const { data } = await axios.post(refreshUrl, {
|
||||
|
||||
Reference in New Issue
Block a user