From f40e52130de00b2d0f9bfb63eb7052408823cf4a Mon Sep 17 00:00:00 2001 From: khavinshankar Date: Fri, 8 Mar 2024 12:06:19 +0530 Subject: [PATCH] update proxy --- vite.config.mts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vite.config.mts b/vite.config.mts index d4bf4eb1212..154694dcad0 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -77,7 +77,10 @@ export default defineConfig({ port: 4000, proxy: { "/api": { - target: process.env.CARE_API ?? "https://work.khavinshankar.dev", + target: + "https://work.khavinshankar.dev" ?? + process.env.CARE_API ?? + "https://careapi.ohc.network", changeOrigin: true, }, }, @@ -94,7 +97,10 @@ export default defineConfig({ port: 4000, proxy: { "/api": { - target: process.env.CARE_API ?? "https://work.khavinshankar.dev", + target: + "https://work.khavinshankar.dev" ?? + process.env.CARE_API ?? + "https://careapi.ohc.network", changeOrigin: true, }, },