From f94ec5ca38fe97f1db4d42c92a6a682f5d593c28 Mon Sep 17 00:00:00 2001 From: slhmy <1484836413@qq.com> Date: Fri, 29 Sep 2023 19:28:58 +0800 Subject: [PATCH] Fix build --- package.json | 2 +- vite.config.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 6138e5f48..bd1b6cd17 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "start": "vite", "start-mock": "vite --mode mock", "build": "vite build", - "build-and-zip": "vite build && zip -f -r dist.zip dist", + "build-and-zip": "vite build && zip -u -r dist.zip dist", "init-mock": "npx msw init public --no-save", "prettier": "npx prettier --write \"src/**/*.{ts,tsx}\"", "prettier:check": "npx prettier --check \"src/**/*.{ts,tsx}\"", diff --git a/vite.config.js b/vite.config.js index 639da0aab..b9f2defee 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,7 +3,6 @@ import react from "@vitejs/plugin-react"; const path = require("path"); export default defineConfig({ - base: "./", server: { proxy: { "/v1": {