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 */
15export const LOCAL_R2_S3_PATH = "/cdn-cgi/local/r2/s3";
16
17export const LOCAL_R2_S3_CREDENTIALS = {
18 accessKeyId: "alchemy-local-r2",
19 secretAccessKey: "alchemy-local-r2-secret",
20} as const;