-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GCP support for object storage. * **GCP Client Initialization**: Initialize GCP client using `@google-cloud/storage` in `src/lib/server/object-storage.ts`. * **GCP Upload Function**: Create `upload_object_gcp` function to handle GCP object uploads in `src/lib/server/object-storage.ts`. * **Conditional Upload**: Update `upload_object` function to conditionally use GCP or Cloudflare R2 based on configuration in `src/lib/server/object-storage.ts`. * **API Route Update**: Update `POST` handler in `src/routes/api/stt/+server.ts` to use `upload_object_gcp` if GCP is configured. * **Environment Variables**: Add GCP-related environment variables (`GCP_PROJECT_ID`, `GCP_BUCKET_NAME`, `GCP_KEY_FILENAME`) to `.env.example`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/hinagiku-dev/Hinagiku?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
8184c49
commit f438fce
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters