chore: custom vite envs
This commit is contained in:
parent
fcadb20d58
commit
7c269bd0bf
2 changed files with 4 additions and 3 deletions
|
|
@ -62,8 +62,9 @@ services:
|
||||||
image: node:20
|
image: node:20
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
# environment:
|
environment:
|
||||||
# VITE_PUSHER_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
|
VITE_HOST: "${VITE_HOST:-localhost}"
|
||||||
|
VITE_PORT: "${VITE_PORT:-5173}"
|
||||||
ports:
|
ports:
|
||||||
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
|
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ export default defineConfig({
|
||||||
clientPort: 443,
|
clientPort: 443,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
host: "localhost",
|
host: process.env.VITE_HOST,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue