chore: custom vite envs
This commit is contained in:
@@ -62,8 +62,9 @@ services:
|
||||
image: node:20
|
||||
pull_policy: always
|
||||
working_dir: /var/www/html
|
||||
# environment:
|
||||
# VITE_PUSHER_APP_KEY: "${PUSHER_APP_KEY:-coolify}"
|
||||
environment:
|
||||
VITE_HOST: "${VITE_HOST:-localhost}"
|
||||
VITE_PORT: "${VITE_PORT:-5173}"
|
||||
ports:
|
||||
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
|
||||
volumes:
|
||||
|
@@ -21,7 +21,7 @@ export default defineConfig({
|
||||
clientPort: 443,
|
||||
}
|
||||
: {
|
||||
host: "localhost",
|
||||
host: process.env.VITE_HOST,
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
|
Reference in New Issue
Block a user