Skip to content

Commit

Permalink
chore: rename STS_GENERATOR_WORKER_URL constant
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed May 22, 2023
1 parent 3195cb2 commit a8e95c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/lib/uploadToIPFS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { S3 } from '@aws-sdk/client-s3';
import { ThirdwebStorage } from '@thirdweb-dev/storage';
import axios from 'axios';
import { KillSwitch } from 'data';
import { EVER_API, S3_BUCKET, STS_TOKEN_URL } from 'data/constants';
import { EVER_API, S3_BUCKET, STS_GENERATOR_WORKER_URL } from 'data/constants';
import type { MediaSet } from 'lens';
import { v4 as uuid } from 'uuid';

Expand All @@ -16,7 +16,7 @@ const FALLBACK_TYPE = 'image/jpeg';
* @returns S3 client instance.
*/
const getS3Client = async (): Promise<S3> => {
const token = await axios.get(STS_TOKEN_URL);
const token = await axios.get(STS_GENERATOR_WORKER_URL);
const client = new S3({
endpoint: EVER_API,
credentials: {
Expand Down
4 changes: 2 additions & 2 deletions packages/data/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const IFRAMELY_URL = 'https://iframely.lenster.xyz/iframely';

// Workers
export const USER_CONTENT_URL = 'https://user-content.lenster.xyz';
export const STS_TOKEN_URL = IS_PRODUCTION
export const STS_GENERATOR_WORKER_URL = IS_PRODUCTION
? 'https://sts.lenster.xyz'
: 'http://localhost:8082';
export const METADATA_WORKER_URL = IS_PRODUCTION
Expand Down Expand Up @@ -139,7 +139,7 @@ export const ALLOWED_MEDIA_TYPES = [
export const MESSAGE_PAGE_LIMIT = 15;
export const MIN_WIDTH_DESKTOP = 1024;

// Named transforms
// Named transforms for ImageKit
export const AVATAR = '300x300';
export const COVER = '1500x500';
export const ATTACHMENT = '1000,fit';
Expand Down

0 comments on commit a8e95c7

Please sign in to comment.