chore: custom vite envs

This commit is contained in:
Andras Bacsai
2024-09-27 21:07:56 +02:00
parent fcadb20d58
commit 7c269bd0bf
2 changed files with 4 additions and 3 deletions

View File

@@ -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:

View File

@@ -21,7 +21,7 @@ export default defineConfig({
clientPort: 443, clientPort: 443,
} }
: { : {
host: "localhost", host: process.env.VITE_HOST,
}, },
}, },
plugins: [ plugins: [