Temporary solution for Vite 6.0.9 issues #1058
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In Vite v6.0.9 introduced breaking changes related to a security fixes. This is causing an error with the laravel-vite-plugin (
https://github.com/laravel/vite-plugin/issues/316
). There is a workaround for setting the server config in the vite config file. However, I'm not sure if that's the best/recommended approach yet. Perhaps a fix from laravel-vite-plugin will be released to fix the issue itself.I have decided to stick with Version 6.0.8 as a temporary solution, until a fix for the
laravel-vite-plugin
is released or another solution is found.