Skip to content

Commit

Permalink
fix: fix prerender config error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed May 15, 2024
1 parent ba3b1e1 commit b975079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/vite-prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function getMetaTag(meta: ArticleMeta | undefined, route: ResolveRouteObject) {
}

async function vitePrerender(mode: string) {
if (mode !== 'build') return void 0;
if (mode !== 'prod') return void 0;

if (!match) {
throw Error('no match routes.');
Expand Down

0 comments on commit b975079

Please sign in to comment.