@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 20 lines 776 Bytes
Raw
1 /**
2 * The local S3-compatible endpoint every locally-emulated (`dev:`) R2 bucket
3 * is served on during `alchemy dev`: `{worker url}/cdn-cgi/local/r2/s3/{bucket}`,
4 * hosted by the dev runtime of each Worker that binds the bucket.
5 *
6 * The credentials are a fixed, well-known pair. They only guard localhost
7 * and exist so SigV4-signed requests and presigned URLs verify exactly like
8 * they do against R2.
9 *
10 * Kept dependency-free: it is bundled into deployed Workers (presign
11 * bindings) as well as imported by the dev runtime bindings.
12 *
13 * NOT exported from `index.ts`.
14 */
15 export const LOCAL_R2_S3_PATH = "/cdn-cgi/local/r2/s3";
16
17 export const LOCAL_R2_S3_CREDENTIALS = {
18 accessKeyId: "alchemy-local-r2",
19 secretAccessKey: "alchemy-local-r2-secret",
20 } as const;