fix(controller): build with env variable (#420)

This commit is contained in:
chilingling 2024-04-15 20:21:54 -07:00 committed by GitHub
parent 8e89cc47e7
commit 259ef69ba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,10 @@ export default defineConfig({
resolve: {},
define: {
'process.env': {},
'import.meta': 'import.meta'
'import.meta': 'import.meta',
'import.meta.env.MODE': 'import.meta.env.MODE',
'import.meta.env.PROD': 'import.meta.env.PROD',
'import.meta.env.BASE_URL': 'import.meta.env.BASE_URL'
},
build: {
cssCodeSplit: false,