fix password reset since going to smtp
This commit is contained in:
@@ -3,7 +3,7 @@ import axios from 'axios'
|
||||
// In production, use relative path to hit the proxy
|
||||
// In development, use the env variable for dev server proxy
|
||||
const API_BASE_URL = process.env.NODE_ENV === 'production'
|
||||
? '/api'
|
||||
? ''
|
||||
: process.env.VUE_APP_API_URL || 'http://127.0.0.1:5000'
|
||||
|
||||
const api = axios.create({
|
||||
@@ -42,8 +42,8 @@ api.interceptors.response.use(
|
||||
|
||||
// Use relative path in production, full URL in development
|
||||
const refreshUrl = process.env.NODE_ENV === 'production'
|
||||
? '/api/refresh-token'
|
||||
: `${API_BASE_URL}/api/refresh-token`
|
||||
? '/refresh-token'
|
||||
: `${API_BASE_URL}/refresh-token`
|
||||
|
||||
const { data } = await axios.post(refreshUrl, {
|
||||
refresh_token: refreshToken
|
||||
|
||||
Reference in New Issue
Block a user