Note Execute all commands in the 'sail' container, exemple using alias sail npm run ssr or sail node public/js/ssr.js https://laravel.com/docs/9.x/sail https://inertiajs.com/server-side-rendering