feat: 渲染器增加 sentry 上报错误
This commit is contained in:
@@ -30,8 +30,7 @@ const config = createViteConfig({
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
console.log('mode', mode);
|
||||
// 加载环境变量(支持 .env.development/.env.production)
|
||||
const env = loadEnv(mode, process.cwd(), ['VITE_', 'VTJ_', 'SY_', 'Y_CODE_']);
|
||||
const env = loadEnv(mode, process.cwd(), ['VITE_']);
|
||||
return {
|
||||
...config,
|
||||
server: {
|
||||
@@ -43,9 +42,5 @@ export default defineConfig(({ mode }) => {
|
||||
// 注入环境变量到客户端
|
||||
__APP_ENV__: JSON.stringify(env)
|
||||
}
|
||||
// build: {
|
||||
// outDir: path.resolve(process.cwd(), '../../dist/designer'),
|
||||
// emptyOutDir: true // 构建前清空目录
|
||||
// }
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user