feat: 新增支持 KKFileView 文件预览功能,需要自行部署文件预览服务器

This commit is contained in:
KAI
2024-08-01 01:03:02 +00:00
committed by Charles7c
parent 881c1ee1e4
commit 99fa5709ee
9 changed files with 168 additions and 9613 deletions

View File

@@ -60,6 +60,8 @@ export default defineConfig(({ command, mode }) => {
assetFileNames: 'static/[ext]/[name]-[hash].[ext]'
}
}
}
},
// 以 envPrefix 开头的环境变量会通过 import.meta.env 暴露在你的客户端源码中。
envPrefix: ['VITE', 'FILE']
}
})