Skip to content

Commit

Permalink
fix(web): remove storage.credential (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk committed Oct 19, 2023
1 parent 7f468fe commit 8e5f568
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/src/pages/app/storages/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ const useStorageStore = create<State>()(

getFilePath: (bucket: string, file: string) => {
const currentApp = useGlobalStore.getState().currentApp;
return `${currentApp.storage.credentials.endpoint}/${bucket}${formatPort(
currentApp?.port,
)}/${file}`;
return `${currentApp.storage.endpoint}/${bucket}${formatPort(currentApp?.port)}/${file}`;
},
})),
),
Expand Down

0 comments on commit 8e5f568

Please sign in to comment.