baoshiwei
2025-04-19 9d960ed0058f9087f49e9741a9af06c3f9116eb0
zhitan-vue/vite.config.js
@@ -4,7 +4,7 @@
// https://vitejs.dev/config/
export default defineConfig(({ mode, command }) => {
  mode = "production"
  mode = "development"
  const env = loadEnv(mode, process.cwd())
  console.log(mode, "==========env")
  const { VITE_APP_ENV } = env
@@ -33,7 +33,7 @@
      proxy: {
        // https://cn.vitejs.dev/config/#server-proxy
        "/dev-api": {
          target: "http://localhost",
          target: "http://localhost:8080",
          changeOrigin: true,
          rewrite: (p) => p.replace(/^\/dev-api/, ""),
        },