From fd8fcf139bc1b40f16dd0da9412fd853ef3edc56 Mon Sep 17 00:00:00 2001 From: Bharat Rawat <31788510+xettri@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:20:42 +0545 Subject: [PATCH] [doc] fix example in doc which used for SSR --- 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();