Skip to content

Commit 7c269bd

Browse files
committed
chore: custom vite envs
1 parent fcadb20 commit 7c269bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker-compose.dev.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ services:
6262
image: node:20
6363
pull_policy: always
6464
working_dir: /var/www/html
65-
# environment:
66-
# VITE_PUSHER_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
65+
environment:
66+
VITE_HOST: "${VITE_HOST:-localhost}"
67+
VITE_PORT: "${VITE_PORT:-5173}"
6768
ports:
6869
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
6970
volumes:

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default defineConfig({
2121
clientPort: 443,
2222
}
2323
: {
24-
host: "localhost",
24+
host: process.env.VITE_HOST,
2525
},
2626
},
2727
plugins: [

0 commit comments

Comments
 (0)