logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.66k stars 439 forks source link

refactor(console): increase custom ui assets upload timeout to 5 mins #6319

Closed charIeszhao closed 3 months ago

charIeszhao commented 3 months ago

Summary

Make request timeout in the useApi() hook configurable and increase custom UI assets upload request timeout to 5 mins. Since the maximum allowed zip file size is 20MB, it might cause a timeout error on some poor network conditions.

Testing

Locally

Checklist

- [ ] .changeset - [ ] unit tests - [ ] integration tests - [ ] necessary TSDoc comments

github-actions[bot] commented 3 months ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +459 Bytes

Diff by File |Name|Diff| |---|---| |packages/console/src/components/CustomUiAssetsUploader/index.tsx|:chart_with_upwards_trend: +97 Bytes| |packages/console/src/ds-components/Uploader/FileUploader/index.tsx|:chart_with_upwards_trend: +315 Bytes| |packages/console/src/hooks/use-api.ts|:chart_with_upwards_trend: +47 Bytes|