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:
2026-08-08 21:54:14 +03:30
co-authored by Cursor
parent b788fe069e
commit 6ee3c6f1f8
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
VITE_API_BASE_URL=https://parche.montech.ir/server/api VITE_API_BASE_URL=https://parche.montest.ir/server/api
+1 -1
View File
@@ -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 # For local Vite (optional): use /server/api with the proxy in vite.config.ts
# VITE_API_BASE_URL=/server/api # VITE_API_BASE_URL=/server/api
+1 -1
View File
@@ -2,7 +2,7 @@ const TOKEN_KEY = 'ft_access_token'
export function getApiBaseUrl(): string { export function getApiBaseUrl(): string {
return (import.meta.env.VITE_API_BASE_URL as string | undefined)?.replace(/\/$/, '') 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 { export function getAccessToken(): string | null {
+1 -1
View File
@@ -22,7 +22,7 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
'/server/api': { '/server/api': {
target: 'https://parche.montech.ir', target: 'https://parche.montest.ir',
changeOrigin: true, changeOrigin: true,
secure: true, secure: true,
}, },