fix password reset since going to smtp

This commit is contained in:
Cipher Vance
2025-11-22 22:47:51 -06:00
parent 92dcbe31a3
commit 6ae5b0ce26
2 changed files with 9 additions and 9 deletions

View File

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