This commit is contained in:
2025-01-03 00:48:49 +08:00
parent 5a578a5594
commit 31fd40f5d8
3 changed files with 66 additions and 1 deletions

View File

@@ -4,10 +4,17 @@ import dayjs from 'dayjs';
import path from 'path';
const isDev = process.env.NODE_ENV === 'development';
const isWebDev = process.env.WEB_DEV === 'true';
const BUILD_TIME = dayjs().format('YYYY-MM-DD HH:mm:ss');
let plugins = [];
if (!isWebDev) {
// 在bolt的web开发环境下不需要ssl
plugins.push(basicSsl());
}
export default defineConfig({
plugins: [basicSsl()],
plugins: [],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),