diff --git a/web/config/index.ts b/web/config/index.ts deleted file mode 100644 index e739ac85..00000000 --- a/web/config/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './proxy' diff --git a/web/config/proxy.ts b/web/config/proxy.ts deleted file mode 100644 index d724238b..00000000 --- a/web/config/proxy.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { ProxyOptions } from 'vite' - -export function createViteProxy(isOpenProxy: boolean, viteEnv: ImportMetaEnv) { - if (!isOpenProxy) - return - - const proxy: Record = { - '/api': { - target: viteEnv.VITE_APP_API_BASE_URL, - changeOrigin: true, - rewrite: path => path.replace('/api/', '/'), - }, - } - - return proxy -}