Skip to content

Commit

Permalink
feat: add ACHIEVEMENTS_WORKER_URL constant
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Jul 17, 2023
1 parent 748abf2 commit d18aa34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/src/components/Profile/Achievements/Streaks.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ACHIEVEMENTS_WORKER_URL } from '@lenster/data/constants';
import type { Profile } from '@lenster/lens';
import formatHandle from '@lenster/lib/formatHandle';
import { Card } from '@lenster/ui';
Expand All @@ -15,7 +16,7 @@ const Streaks: FC<StreaksProps> = ({ profile }) => {
const fetchStreaks = async () => {
try {
const response = await axios(
`https://achievements.lenster.xyz/streaks/${profile.id}`
`${ACHIEVEMENTS_WORKER_URL}/streaks/${profile.id}`
);

const outputData = Object.entries(response.data.data).map(
Expand Down
1 change: 1 addition & 0 deletions packages/data/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const SPACES_WORKER_URL = IS_PRODUCTION
export const LEAFWATCH_WORKER_URL = IS_PRODUCTION
? 'https://leafwatch.lenster.xyz'
: 'http://localhost:8089';
export const ACHIEVEMENTS_WORKER_URL = 'https://achievements.lenster.xyz';

// Tokens / Keys
export const ALCHEMY_KEY = '7jxlM7yIx-aJXDivcEZxsLFFRKQS6-ue';
Expand Down

2 comments on commit d18aa34

@vercel
Copy link

@vercel vercel bot commented on d18aa34 Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

prerender – ./apps/prerender

prerender.lenster.xyz
prerender-lenster.vercel.app
prerender-git-main-lenster.vercel.app

@vercel
Copy link

@vercel vercel bot commented on d18aa34 Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./apps/web

lenster.vercel.app
lenster.xyz
web-git-main-lenster.vercel.app
web-lenster.vercel.app

Please sign in to comment.