Have you tried to run npm run build and git push the public/build folder ?
Unable to locate file in Vite manifest: resources/js/Pages/guest/SignIn.tsx.
I cant deploy my app with Laravel, Inertia, React and TS on Digital Ocean.
This error has been on my foot since the beginning of the week.
First it happened with Laravel Sail and I had to pass these settings in vite.config for it to work.
watch: { usePolling: true, origin: 'http://localhost' }, server: { hmr: { host: 'localhost' } }
Then I managed to run with docker, on my machine, with a setup simulating a production environment. It works perfectly.
Now I'm trying to go up to the digital ocean with the Apps feature, and it doesn't work. I run all laravel commands to deployment + npm run build, like in my own container, and this doesnt works. I cant understand why.
My package:
"scripts": { "dev": "vite", "build": "tsc && vite build" }, "vite": "^4.0.0"
My vite.config:
export default defineConfig({ plugins: [ laravel({ input: 'resources/js/app.tsx', refresh: true, }), react(), ] });
Please or to participate in this conversation.