#Convert Server-side App to Client-side?

1 messages · Page 1 of 1 (latest)

mighty solar
#

Just don't run the SSR server, that's it.

#

The SSR server is only used for the initial html response, it's still also rendered client side

vale bridge
vale bridge
mighty solar
# vale bridge Could you be a bit more descriptive. I do not understand the meaning of: `Just d...

From the docs;

Server-side rendering pre-renders your JavaScript pages on the server, allowing your visitors to receive fully rendered HTML when they visit your application.

Because of how Inertia works, then the client hydrates from the rendered html and the frontend framework takes over again, follow-up requests would just be XHR requests with Inertia (JSON) responses

You can see what happens and how it works by inspecting your web page, see the responses, the requests etc

vale bridge
vale bridge
limpid vapor
#

Ive done project like this, yes

#

I do have this frontend nuxt project on Github, it wont work for you as you are gonna have different api routes but I would say its a good start if you would want it just let me know

vale bridge
limpid vapor