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();