Skip to content

Commit b68082c

Browse files
authored
Just updating the port inside the .env file is not enough
1 parent 61a45e6 commit b68082c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

UPGRADE.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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

351349
You 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:

0 commit comments

Comments
 (0)