From f5ff02ada47587ff683af53f6831fc25de6cd534 Mon Sep 17 00:00:00 2001 From: adonis Date: Sat, 8 Aug 2026 21:54:15 +0330 Subject: [PATCH] Point API base URL to parche.montest.ir Admin client and Vite proxy now use the montest host; 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 e07617f..d3d8334 100644 --- a/.env.example +++ b/.env.example @@ -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/src/services/http.ts b/src/services/http.ts index bbe8b69..d64ceaf 100644 --- a/src/services/http.ts +++ b/src/services/http.ts @@ -2,7 +2,7 @@ const TOKEN_KEY = 'fabric-admin-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 050039b..64c6cb5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -23,7 +23,7 @@ export default defineConfig(({ mode }) => ({ server: { proxy: { '/server/api': { - target: 'https://parche.montech.ir', + target: 'https://parche.montest.ir', changeOrigin: true, secure: true, },