-
-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NOT FOUND JSON reponse when starting with SSR #1813
Comments
I can't replicate the issue, cloned the project but it works as expected, the only thing I'm seeing is some hydration errors. Just a few things to note:
|
You wouldn't visit the Inertia SSR server. You just visit your app as usual, Inertia then uses the SSR server to grab the rendered HTML and render it in the blade template |
Oh. My bad then... Just to be sure, what need to be running at the same time? The app, the SSR server and the node server? |
So just run your Laravel app like you always have, and then in production run As @RobertBoes suggested you don't ever visit the SSR node server, that's just a process running in the background that the Inertia Laravel communicates with it automatically 👍 |
Version:
@inertiajs/react
version: 1.0.15Describe the problem:
I created a new Laravel project and followed the steps to implement Inertia. Everything works fine. Then I tried implementing SSR. I followd the doc. But when I run
php artisan inertia:start-ssr
, I get a JSON responseSteps to reproduce:
Clone this project, install everything, run
npm run build
, and start withphp artisan inertia:start-ssr
The text was updated successfully, but these errors were encountered: