From 844bc068d1540ba68f16936c742c828686183d0c Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Wed, 25 Oct 2023 00:33:26 +0800 Subject: [PATCH] mod: env --- .gitignore | 3 +++ vite.config.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 41f66cfe..14bdff20 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ kun-ssr # rollup-plugin-visualizer stats.html + +# .env.production +.env.production diff --git a/vite.config.ts b/vite.config.ts index e1535b3c..dcb289da 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,6 +16,10 @@ export default defineConfig({ esbuild: { drop: ['console', 'debugger'], }, + build: { + // Dist dir name + assetsDir: 'kun', + }, server: { host: '127.0.0.1', port: 1007 }, // Suppress i18n warnings define: {