Explorar el Código

fix: 应域名调整静态资源目录也对应调整

lanjianrong hace 3 años
padre
commit
8ffeff4a61
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      .env.production

+ 2 - 2
.env.production

@@ -2,7 +2,7 @@
 VITE_USE_MOCK = false
 
 # public path
-VITE_PUBLIC_PATH = /backstage/
+VITE_PUBLIC_PATH =
 
 # Delete console
 VITE_DROP_CONSOLE = true
@@ -10,7 +10,7 @@ VITE_DROP_CONSOLE = true
 # Whether to enable gzip or brotli compression
 # Optional: gzip | brotli | none
 # If you need multiple forms, you can use `,` to separate
-VITE_BUILD_COMPRESS = 'none'
+VITE_BUILD_COMPRESS = 'gzip'
 
 # Whether to delete origin files when using compress, default false
 VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false