Download apps/readest-app/src/utils/storage.ts from echodict/readest: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/datasets/echodict/readest/resolve/main/apps/readest-app/src/utils/storage.ts
- Command line
-
hf download hf://datasets/echodict/readest/apps/readest-app/src/utils/storage.ts
-
curl -L -o storage.ts https://huggingface.co/datasets/echodict/readest/resolve/main/apps/readest-app/src/utils/storage.ts
315 Bytes
| type ObjectStorageType = 'r2' | 's3'; | |
| export const getStorageType = (): ObjectStorageType => { | |
| // TODO: do not expose storage type to client | |
| if (process.env['NEXT_PUBLIC_OBJECT_STORAGE_TYPE']) { | |
| return process.env['NEXT_PUBLIC_OBJECT_STORAGE_TYPE'] as ObjectStorageType; | |
| } else { | |
| return 'r2'; | |
| } | |
| }; | |