Point API base URL to parche.montest.ir
Production and Vite proxy now target the montest host where the OTP endpoint responds; rebuild dist for deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
VITE_API_BASE_URL=https://parche.montech.ir/server/api
|
||||
VITE_API_BASE_URL=https://parche.montest.ir/server/api
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
VITE_API_BASE_URL=https://parche.montech.ir/server/api
|
||||
VITE_API_BASE_URL=https://parche.montest.ir/server/api
|
||||
|
||||
# For local Vite (optional): use /server/api with the proxy in vite.config.ts
|
||||
# VITE_API_BASE_URL=/server/api
|
||||
|
||||
@@ -2,7 +2,7 @@ const TOKEN_KEY = 'ft_access_token'
|
||||
|
||||
export function getApiBaseUrl(): string {
|
||||
return (import.meta.env.VITE_API_BASE_URL as string | undefined)?.replace(/\/$/, '')
|
||||
|| 'https://parche.montech.ir/server/api'
|
||||
|| 'https://parche.montest.ir/server/api'
|
||||
}
|
||||
|
||||
export function getAccessToken(): string | null {
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ export default defineConfig({
|
||||
server: {
|
||||
proxy: {
|
||||
'/server/api': {
|
||||
target: 'https://parche.montech.ir',
|
||||
target: 'https://parche.montest.ir',
|
||||
changeOrigin: true,
|
||||
secure: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user