Skip to content

Commit

Permalink
set download bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapk00 committed Apr 23, 2024
1 parent a6bb80b commit aca5e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/hubble/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,11 +959,11 @@ async function verifyAWSCredentials(): Promise<boolean> {
try {
const params = {
Bucket: SNAPSHOT_S3_UPLOAD_BUCKET,
Prefix: "/",
Prefix: "snapshots/",
};

const result = await s3.send(new ListObjectsV2Command(params));
logger.info({ result }, "Verified R2 credentials for snapshots");
logger.info({ keys: result.KeyCount }, "Verified R2 credentials for snapshots");

return true;
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion apps/hubble/src/hubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const APP_VERSION = packageJson.version;
export const APP_NICKNAME = process.env["HUBBLE_NAME"] ?? "Farcaster Hub";

export const SNAPSHOT_S3_UPLOAD_BUCKET = "farcaster-snapshots";
export const SNAPSHOT_S3_DEFAULT_BUCKET = "download-beta.farcaster.xyz";
export const SNAPSHOT_S3_DEFAULT_BUCKET = "download.farcaster.xyz";
export const S3_REGION = "auto";

export const FARCASTER_VERSION = "2024.3.20";
Expand Down

0 comments on commit aca5e22

Please sign in to comment.