Skip to content

Commit

Permalink
fix: 🐛 修复网站发布页失效后未正确替换网址的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Dec 24, 2024
1 parent 8cf5069 commit 5c56d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup-plugin/siteUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const siteUrl: OutputPluginOption = {
(_, name, other) => {
if (!Reflect.has(siteUrlMap!, name)) {
console.error(`未知站点: ${name}`);
return '';
return other as string;
}
const list = siteUrlMap![name].filter((url) =>
URL.canParse(`https://${url}`),
Expand Down

0 comments on commit 5c56d77

Please sign in to comment.