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 .",