File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -330,22 +330,20 @@ node storage/ssr/ssr.js
330330
331331### Optional: Update default HMR port when using Laravel Sail
332332
333- If you are using Laravel Sail, you must update the ` HMR_PORT ` in your ` .env ` file.
333+ If you are using Laravel Sail, you need to update the default ` HMR_PORT ` value and the port it maps to in your ` docker-compose.yml ` file.
334334
335335``` diff
336- - HMR_PORT= 8080
337- + HMR_PORT= 5173
336+ - -'${ HMR_PORT:- 8080}:8080'
337+ + -'${ HMR_PORT:- 5173}:5173'
338338```
339339
340- Alternatively, you can set the default value in your ` docker-compose.yml ` file.
341-
340+ If you are setting the HMR_PORT in your ` .env ` file you will also need to update it to match.
342341
343342``` diff
344- - -'${ HMR_PORT:- 8080}:8080'
345- + -'${ HMR_PORT:- 5173}:5173'
343+ - HMR_PORT= 8080
344+ + HMR_PORT= 5173
346345```
347346
348-
349347### Wrapping up
350348
351349You should now be able to build your assets using ` dev ` command. This will also invoke the Vite server and Vite will watch for file changes:
You can’t perform that action at this time.
0 commit comments