Skip to content

Commit ee93dc7

Browse files
committed
Vite is exposed to network and let through docker.
1 parent 15a5668 commit ee93dc7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

compose.dev.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ services:
5959
XDEBUG_IDE_KEY: ${XDEBUG_IDE_KEY:-DOCKER}
6060
XDEBUG_LOG: /dev/stdout
6161
XDEBUG_LOG_LEVEL: 0
62+
ports:
63+
- '${VITE_PORT:-5173}:5173'
6264
tty: true # Enables an interactive terminal
6365
stdin_open: true # Keeps standard input open for 'docker exec'
6466
env_file:

vite.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import { defineConfig } from 'vite';
22
import laravel from 'laravel-vite-plugin';
33

44
export default defineConfig({
5+
server: {
6+
host: '0.0.0.0',
7+
hmr: {
8+
host: 'localhost',
9+
}
10+
},
511
plugins: [
612
laravel({
713
input: ['resources/css/app.css', 'resources/js/app.js'],

0 commit comments

Comments
 (0)