Skip to content

Commit

Permalink
chore: cr
Browse files Browse the repository at this point in the history
  • Loading branch information
zllkjc committed Dec 11, 2024
1 parent 7a81a92 commit 1611830
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/server/core/src/plugins/render/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export async function createRender({
},
) => {
const forMatchpathname = matchPathname ?? getPathname(req);

const [routeInfo, params] = matchRoute(router, forMatchpathname);
const framework = metaName || 'modern-js';
const fallbackHeader = `x-${cutNameByHyphen(framework)}-ssr-fallback`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,10 @@ export const getServerRoutes = (
appContext: AppToolsContext<'shared'>;
config: AppNormalizedConfig<'shared'>;
},
): ServerRoute[] => {
return [
...collectHtmlRoutes(entrypoints, appContext, config),
...collectStaticRoutes(appContext, config),
];
};
): ServerRoute[] => [
...collectHtmlRoutes(entrypoints, appContext, config),
...collectStaticRoutes(appContext, config),
];

const toPosix = (pathStr: string) =>
pathStr.split(path.sep).join(path.posix.sep);
Expand Down

0 comments on commit 1611830

Please sign in to comment.