From 9530bee1de59156347607dc7298210da15591198 Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Wed, 15 Oct 2025 13:55:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index fe8bfc2..50e2ccf 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,5 +1,4 @@ import { defineConfig, loadEnv } from 'vite'; -import basicSsl from '@vitejs/plugin-basic-ssl'; import createPlugins from './vite/plugins'; import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀 import path from 'path'; @@ -18,18 +17,16 @@ export default defineConfig(({ mode, command }) => { extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] }, // https://cn.vitejs.dev/config/#resolve-extensions - plugins: [createPlugins(env, command === 'build'), basicSsl()], + plugins: createPlugins(env, command === 'build'), server: { host: '0.0.0.0', - https: true, port: Number(env.VITE_APP_PORT), open: true, proxy: { [env.VITE_APP_BASE_API]: { - target: 'https://frp-off.com:47543', + target: 'http://localhost:8080', changeOrigin: true, ws: true, - secure: false, rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '') } }