Skip to content

Commit f9c33c5

Browse files
fix lint errors
1 parent 4175d31 commit f9c33c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/website-v2/src/marketplace/marketplaceData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ function resolveHtmlAssetLinks(html: string, baseUrl?: string) {
222222
if (!baseUrl || !baseUrl.startsWith("http")) return html;
223223
return html.replace(
224224
/(src|href)=(["'])([^"']+)\2/gi,
225-
(match, attr, quote, value) => {
225+
(_match, attr, quote, value) => {
226226
const resolved = resolveRelativeUrl(String(value), baseUrl);
227227
return `${attr}=${quote}${resolved}${quote}`;
228228
},

packages/website-v2/vite.config.ts

Lines changed: 2 additions & 2 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, ssrBuild }) => {
11+
const config = defineConfig(({ mode, command, isSsrBuild }) => {
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, ssrBuild }) => {
2727
targets: [
2828
{
2929
src: "../../blog/**",
30-
dest: ssrBuild ? "../client/blog" : "blog",
30+
dest: isSsrBuild ? "../client/blog" : "blog",
3131
},
3232
],
3333
watch: command === "serve" ? { reloadPageOnChange: true } : undefined,

0 commit comments

Comments
 (0)