From bb22f223738972919829201a90058d1a479a5b42 Mon Sep 17 00:00:00 2001 From: jiangzhixiong <710328466@qq.com> Date: Tue, 23 Apr 2024 10:37:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.ts | 2 +- config/routes/index.ts | 5 +++++ package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/config.ts b/config/config.ts index b70c663..11acdd4 100644 --- a/config/config.ts +++ b/config/config.ts @@ -18,6 +18,6 @@ export default defineConfig({ routes, npmClient: 'pnpm', define: { - APP_ENV: process.env.APP_ENV || 'development', + APP_ENV: process.env.NODE_ENV || 'production', }, }); diff --git a/config/routes/index.ts b/config/routes/index.ts index c88dc5a..cdafe02 100644 --- a/config/routes/index.ts +++ b/config/routes/index.ts @@ -1,4 +1,9 @@ const routes = [ + { + name: 'home', + path: '/', + redirect: '/material/home', + }, { name: 'cabinet', path: '/cabinet/*', diff --git a/package.json b/package.json index d6c3203..e800b81 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "author": "dev <710328466@qq.com>", "scripts": { - "build:master": "max build", + "build:master": "cross-env APP_ENV=production max build", "comp": "cross-env max g component", "dev": "max dev", "format": "prettier --cache --write .",