From 9b3f824d17035fdead8facd1caf1fa5a54b5b688 Mon Sep 17 00:00:00 2001 From: Bharat Rawat <31788510+xettri@users.noreply.github.com> Date: Thu, 28 Nov 2024 08:34:38 +0545 Subject: [PATCH] [doc] Fix SSR Node Bundle Usage in Docs (#4076) --- website/docs/en/guide/advanced/ssr.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/en/guide/advanced/ssr.mdx b/website/docs/en/guide/advanced/ssr.mdx index 3f5706e9cc..7f0883a684 100644 --- a/website/docs/en/guide/advanced/ssr.mdx +++ b/website/docs/en/guide/advanced/ssr.mdx @@ -82,8 +82,8 @@ import { createRsbuild, loadConfig } from '@rsbuild/core'; // Implement SSR rendering function const serverRender = (serverAPI) => async (_req, res) => { - // Load SSR bundle - const indexModule = await serverAPI.environments.ssr.loadBundle('index'); + // Load Node bundle for SSR + const indexModule = await serverAPI.environments.node.loadBundle('index'); const markup = indexModule.render();