diff --git a/src/shared/services/file/index.ts b/src/shared/services/file/index.ts index 158c6b9..93074cc 100644 --- a/src/shared/services/file/index.ts +++ b/src/shared/services/file/index.ts @@ -4,9 +4,9 @@ import { Upload } from "tus-js-client"; import { request } from "~/shared/libs"; -const STORAGE_API_URL = import.meta.env.VITE_API_BASE_STORAGE_URL; +const STORAGE_API_URL = '/api/v1.5/storage'; const MAX_CHUNK_SIZE = 80 * 1024 * 1024; // 80 MB -const TUS_ENDPOINT = import.meta.env.VITE_TUS_ENDPOINT?.trim(); +const TUS_ENDPOINT = '/tus/files'; const TUS_STATUS_POLL_INTERVAL_MS = 2000; const TUS_STATUS_POLL_TIMEOUT_MS = 5 * 60 * 1000;