You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE.md
+137-9Lines changed: 137 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,14 +138,6 @@ This will automatically detect whether you are running in serve or build mode an
138
138
139
139
If your entry point is not `resources/js/app.js`, you should read the [entry point docs](https://github.com/laravel/vite-plugin/blob/docs/docs/vite.md#entry-points) to learn how to use the `@vite` directive with different entry points.
140
140
141
-
If you are manually including the HMR bundle, you can remove this as well:
You will need to update the environment variables that are explicitly exposed in your `.env` files and in hosting environments such as Forge to use the `MIX_` prefix instead of `VITE_`:
314
+
315
+
```diff
316
+
- VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
317
+
- VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
318
+
+ MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
319
+
+ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
320
+
```
321
+
322
+
You will also need to update these references in your JavaScript code to use the new variable name and Vite syntax:
0 commit comments