|
@@ -8,7 +8,7 @@ import Icons from 'unplugin-icons/vite'
|
|
|
import IconsResolver from 'unplugin-icons/resolver'
|
|
import IconsResolver from 'unplugin-icons/resolver'
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
|
-export default defineConfig((mode) => {
|
|
|
|
|
|
|
+export default defineConfig(({ mode }) => {
|
|
|
const env = loadEnv(mode, process.cwd())
|
|
const env = loadEnv(mode, process.cwd())
|
|
|
return {
|
|
return {
|
|
|
base: env.VITE_BASE_URL || '/',
|
|
base: env.VITE_BASE_URL || '/',
|