@@ -8,7 +8,7 @@ import { cloudflare } from "@cloudflare/vite-plugin";
88import { githubStarsPlugin } from "./src/ssg/github-stars-plugin" ;
99import { viteStaticCopy } from "vite-plugin-static-copy" ;
1010
11- const config = defineConfig ( ( { mode, command, isSsrBuild } ) => {
11+ const config = defineConfig ( ( { mode, command } ) => {
1212 const isTest = process . env . VITEST === "true" || mode === "test" ;
1313 const env = loadEnv ( mode , process . cwd ( ) , "" ) ;
1414 const githubToken =
@@ -27,7 +27,7 @@ const config = defineConfig(({ mode, command, isSsrBuild }) => {
2727 targets : [
2828 {
2929 src : "../../blog/**" ,
30- dest : isSsrBuild ? "../client/blog" : " blog",
30+ dest : "../client/blog" ,
3131 } ,
3232 ] ,
3333 watch : command === "serve" ? { reloadPageOnChange : true } : undefined ,
@@ -85,7 +85,7 @@ function getMarketplaceStaticPages() {
8585}
8686
8787function flattenPages (
88- pages : Record < string , string > | Record < string , Record < string , string > > ,
88+ pages : Record < string , string > | Record < string , Record < string , string > >
8989) {
9090 const flatPages : Record < string , string > = { } ;
9191 for ( const [ key , value ] of Object . entries ( pages ) as Array <
0 commit comments