From 16b331cedcc74b79a83fc15cc9c5ccdf922516e7 Mon Sep 17 00:00:00 2001 From: Dennis Adamczyk Date: Mon, 22 Dec 2025 12:21:46 +0100 Subject: [PATCH] fix: Update file references from ssr.js to app.js --- v2/advanced/server-side-rendering.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v2/advanced/server-side-rendering.mdx b/v2/advanced/server-side-rendering.mdx index 38914b7..f1b1924 100644 --- a/v2/advanced/server-side-rendering.mdx +++ b/v2/advanced/server-side-rendering.mdx @@ -254,13 +254,13 @@ With the server running, you should be able to access your app within the browse Since your website is now being server-side rendered, you can instruct VueReactSvelte to "hydrate" the static markup and make it interactive instead of re-rendering all the HTML that we just generated. -To enable client-side hydration in a Vue app, update your `ssr.js` file to use `createSSRApp` instead of `createApp`. +To enable client-side hydration in a Vue app, update your `app.js` file to use `createSSRApp` instead of `createApp`. -To enable client-side hydration in a React app, update your `ssr.js` file to use `hydrateRoot` instead of `createRoot`. +To enable client-side hydration in a React app, update your `app.js` file to use `hydrateRoot` instead of `createRoot`. -To enable client-side hydration in a Svelte 4 app, set the `hydrate` option to `true` in your `ssr.js` file. +To enable client-side hydration in a Svelte 4 app, set the `hydrate` option to `true` in your `app.js` file. -To enable client-side hydration in a Svelte 5 app, update your `ssr.js` file to use `hydrate` instead of `mount` when server rendering. +To enable client-side hydration in a Svelte 5 app, update your `app.js` file to use `hydrate` instead of `mount` when server rendering.