From b3972f09fb908a02e08e4acff53081ef04a57f8f Mon Sep 17 00:00:00 2001 From: skjsjhb Date: Thu, 16 Jan 2025 23:17:47 +0800 Subject: [PATCH] fix(build): make vite respond with 404 when not found - Change app type to get expected 404 when file is missing. --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index 116e87cf..93d381c5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,6 +11,7 @@ export default defineConfig(({ command }) => { return { root: "./src/renderer", + appType: "mpa", base: "", publicDir: path.resolve(import.meta.dirname, "public"), build: {