[Bug]: 404 on vite on windows
- Dominant language
- PHP
- Stars
- 4.6k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
### System architecture
Windows
### PHP Version
8.3.19 (from herd)
### Bug description
Hi,
I tried to run `npm run dev` with expose 3.0.3 `expose share https://tkfz.test --subdomain=tkfz-ms` and `herd share https://tkfz.test --subdomain=tkfz-ms` I get a 404 on the vite client:
```bash
404 GET /resources/js/app.js .............................................................. 09:09:12 194 ms
404 GET /resources/css/app.css ............................................................ 09:09:12 194 ms
404 GET /resources/webfonts/oswald.woff ................................................... 09:09:12 208 ms
404 GET /@vite/client ..................................................................... 09:09:12 186 ms
```
The hot file before sharing:
```
https://tkfz.test:5173
```
The hot file after sharing is empty.
Sidenote:
If I'm using herd share it prints the output:
```bash
A new Expose Update is available (3.0.3)
To update run: expose self-update
Thank you for using Expose Pro
```
If I'm using expose share only this is printed
```bash
Thank you for using Expose Pro
```
### Steps to reproduce
_No response_
### vite.config.js
```config.js
import {defineConfig} from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
import livewire from '@defstudio/vite-livewire-plugin';
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
resolve: {
alias: {
'vue': 'vue/dist/vue.esm-bundler.js',
'spatie-media-lib-pro': '/vendor/spatie/laravel-medialibrary-pro/resources/js',
}
},
plugins: [
tailwindcss(),
laravel({
input: [
'resources/js/alpine.js',
'resources/js/app.js',
'resources/js/bootstrap.js',
'resources/js/livewire.js',
'resources/js/pusher.js',
'resources/js/vue.js',
'resources/css/app.css',
],
refresh: false
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
livewire({
refresh: ['resources/css/app.css'],
}),
],
});
```
Contributor guide
Assessment
This issue has not been assessed yet.