Cleaning here and there

This commit is contained in:
Florian Sylvain
2023-02-06 18:31:34 +01:00
parent 42909a007d
commit 33e6925dab
2 changed files with 14 additions and 11 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import { fileURLToPath, URL } from "node:url"
import { defineConfig, loadEnv } from "vite"
import { defineConfig, loadEnv, type UserConfig } from "vite"
import vue from "@vitejs/plugin-vue"
// https://vitejs.dev/config/
export default defineConfig(({ command, mode }) => {
export default defineConfig(({ command, mode }): UserConfig => {
const env1 = loadEnv(mode, "./../../", "")
const env2 = loadEnv(mode, process.cwd(), "")
@@ -21,7 +21,7 @@ export default defineConfig(({ command, mode }) => {
}
},
server: {
port: env1.APP_FRONT_PORT,
port: parseInt(env1.APP_FRONT_PORT),
},
base: env1.APP_BASE_FRONT_PATH ?? "/"
}