Skip to content

Commit

Permalink
[doc] Fix SSR Node Bundle Usage in Docs (#4076)
Browse files Browse the repository at this point in the history
  • Loading branch information
xettri authored Nov 28, 2024
1 parent 29ba24c commit 9b3f824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/en/guide/advanced/ssr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9b3f824

Please sign in to comment.