Skip to content

Commit 22517d7

Browse files
fix asset loading
1 parent b2fc102 commit 22517d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/website-v2/vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { cloudflare } from "@cloudflare/vite-plugin";
88
import { githubStarsPlugin } from "./src/ssg/github-stars-plugin";
99
import { 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

8787
function 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

Comments
 (0)