Skip to content

Commit ffc8f05

Browse files
committed
fix build
1 parent a87aad4 commit ffc8f05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/.vuepress/components/api/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ export const apis = {
55
};
66
export const defaultApi = "cf";
77
export const api = () => {
8+
if (typeof localStorage === "undefined") {
9+
return apis[defaultApi];
10+
}
811
return localStorage.getItem("api") || apis[defaultApi];
912
};

0 commit comments

Comments
 (0)