feat(vite-plugins): 更新cloudflare插件环境变量加载方式

This commit is contained in:
严浩
2025-10-27 02:25:33 +08:00
parent 62a792b1da
commit c27c8544de
2 changed files with 3 additions and 5 deletions

View File

@@ -39,8 +39,6 @@ export default defineConfig(async (configEnv) => {
},
define: {
__DEV__: JSON.stringify(!isBuild),
// // https://github.com/fi3ework/vite-plugin-checker/issues/569#issuecomment-3254311799
// 'process.env.NODE_ENV': JSON.stringify('production'),
},
server: {
allowedHosts: ['.NWCT.DEV'],