From 6ee3c6f1f83444be0a9b7e8e9ac595a5e58c0872 Mon Sep 17 00:00:00 2001 From: adonis Date: Sat, 8 Aug 2026 21:54:14 +0330 Subject: [PATCH] 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 --- .env | 2 +- .env.example | 2 +- src/services/http.ts | 2 +- vite.config.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index e07617f..d3d8334 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_API_BASE_URL=https://parche.montech.ir/server/api +VITE_API_BASE_URL=https://parche.montest.ir/server/api diff --git a/.env.example b/.env.example index e1a994a..6c265ca 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/src/services/http.ts b/src/services/http.ts index 0acb3b3..dfd9736 100644 --- a/src/services/http.ts +++ b/src/services/http.ts @@ -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 { diff --git a/vite.config.ts b/vite.config.ts index 83d3c31..3630f73 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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, },