You need to run npm run build and upload the build folder in public as well
laravel in shared hosting: vite manifest.json not found
i know that deploy a laravel project in a shared hosting is not recommended, but its a client issue. because of this i can't run console commands: pure pain, i know.
by recomendations, my folder structure is this:
...
[laravel-project] <-- all laravel files, except "/public" folder
[public_html] <-- all /public folder content
...
as you can see, the folder structure in the server is different as we have working in local; because in local environment the "public" is INSIDE the laravel-project.
so, when i try to view my project in browser, i see this error:
Vite manifest not found at: /home/server/laravel-project/public/build/manifest.json
@vite(['resources/css/app.css', 'resources/js/app.js'])
the manifest.json exists in server, but is in: "/home/server/laravel-project/build/manifest.json"
question: my folder structure is wrong? should i maintain the structure as local?
many thanks.
Please or to participate in this conversation.