Skip to content

Commit ae31971

Browse files
authored
Merge pull request #4 from niyozbek/main
Vite is exposed to network and let through docker.
2 parents 15a5668 + ee93dc7 commit ae31971

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

compose.dev.yaml

Lines changed: 2 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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)