Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zllkjc committed Dec 23, 2024
1 parent 100edf5 commit bf8e4cb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
9 changes: 1 addition & 8 deletions packages/server/core/src/plugins/render/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function matchRoute(

const result = matched[0][0];

// here we can parse the dynamic server routes params
return result || [];
}

Expand Down Expand Up @@ -237,14 +238,6 @@ async function renderHandler(
mode: 'ssr' | 'csr',
onError: (e: unknown) => Promise<void>,
) {
// inject server.baseUrl message
const serverData = {
router: {
baseUrl: options.routeInfo.urlPath,
params: options.params,
},
};

let response: Response | null = null;

const { serverManifest } = options;
Expand Down
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf8e4cb

Please sign in to comment.