Skip to content

Commit

Permalink
修正了typo, WebDev -> WebDav
Browse files Browse the repository at this point in the history
  • Loading branch information
yudshj committed Sep 19, 2024
1 parent 212d15f commit df222de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/api/webdav/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config = getServerSideConfig();

const mergedAllowedWebDavEndpoints = [
...internalAllowedWebDavEndpoints,
...config.allowedWebDevEndpoints,
...config.allowedWebDavEndpoints,
].filter((domain) => Boolean(domain.trim()));

const normalizeUrl = (url: string) => {
Expand Down
4 changes: 2 additions & 2 deletions app/config/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const getServerSideConfig = () => {
// `[Server Config] using ${randomIndex + 1} of ${apiKeys.length} api key`,
// );

const allowedWebDevEndpoints = (
const allowedWebDavEndpoints = (
process.env.WHITE_WEBDAV_ENDPOINTS ?? ""
).split(",");

Expand Down Expand Up @@ -229,6 +229,6 @@ export const getServerSideConfig = () => {
disableFastLink: !!process.env.DISABLE_FAST_LINK,
customModels,
defaultModel,
allowedWebDevEndpoints,
allowedWebDavEndpoints,
};
};

1 comment on commit df222de

@JsonSong89
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉应该 process.env.WHITE_WEBDAV_ENDPOINTS || process.env.WHITE_WEBDEV_ENDPOINTS 兼容一下
不然老配置全部挂

Please sign in to comment.