chore: custom vite envs
This commit is contained in:
@@ -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: [
|
||||||
|
Reference in New Issue
Block a user