mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
Added base path to env variables
This commit is contained in:
@@ -12,6 +12,7 @@ docker-compose up
|
|||||||
TODO
|
TODO
|
||||||
## Environment variables
|
## Environment variables
|
||||||
- ./env
|
- ./env
|
||||||
|
- APP_BASE_FRONT_PATH
|
||||||
- APP_API_ADDRESS
|
- APP_API_ADDRESS
|
||||||
- APP_FRONT_ADDRESS
|
- APP_FRONT_ADDRESS
|
||||||
- APP_API_PORT
|
- APP_API_PORT
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { fileURLToPath, URL } from 'node:url'
|
import { fileURLToPath, URL } from "node:url"
|
||||||
import { defineConfig, loadEnv } from 'vite'
|
import { defineConfig, loadEnv } from "vite"
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from "@vitejs/plugin-vue"
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(({ command, mode }) => {
|
export default defineConfig(({ command, mode }) => {
|
||||||
@@ -11,7 +11,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
@@ -22,6 +22,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
port: env1.APP_FRONT_PORT,
|
port: env1.APP_FRONT_PORT,
|
||||||
}
|
},
|
||||||
|
base: env1.APP_BASE_FRONT_PATH ?? "/"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user