laravel 9
我正在从事与和Vite
合作 的项目laravel-vite
,
在开发环境中一切正常,但在生产 cPanel 服务器中我遇到了这个问题
Vite manifest not found at: /home/???????/cart_shop/public/build/manifest.json
# With
Missing Vite Manifest File
Did you forget to run `npm install && npm run dev`?
Run Code Online (Sandbox Code Playgroud)
我尝试解决问题,但没有任何效果,我需要从 vite.config.js 更改 public 文件夹和 sep 文件夹构建文件位置,但我找不到方法。
请注意:cPanel 共享服务器中的文件顺序已更改为
- home
- public_html
- cart_shop
- Root
- public
- etc
Run Code Online (Sandbox Code Playgroud)
到
- home
- public_html
- public files and folders // I changed the index URLs too.
- cart_shop
- Root
- etc
Run Code Online (Sandbox Code Playgroud)
我的vite.config.js …