I Working on project that working with laravel 9
and Vite
with laravel-vite
,
In Dev environment all thing working fine, but in production cPanel server I has this issue
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`?
I tried to solve the problem but nothing work, I need to change the public folder and the sup folder build file place from vite.config.js but I don't find the way to do that.
Note that: the file sequence is changed in cPanel shared server from
- home
- public_html
- cart_shop
- Root
- public
- etc
To
- home
- public_html
- public files and folders // I changed the index URLs too.
- cart_shop
- Root
- etc
my vite.config.js
config is like:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [
laravel({
input: 'resources/js/app.js',
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
],
});
CodePudding user response:
Yeah same here, they totally broke up whole laravel with vite, spent hours figure this out no luck. Nothing works, Laravel Mix was awesome, with Vite? Spent 10 hours figuring out how to even GET laravel WORK!!! not talking about vue, tailwind... when I asked at their discord moderators started bully me... exceptional support
CodePudding user response:
same here I spent hours solving this problem but nothing have changed