Skip to content

Commit

Permalink
chore: remove pro mf (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Dec 12, 2022
1 parent 70b4781 commit b639762
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 250 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ updates:
schedule:
interval: "daily"

- package-ecosystem: "npm"
directory: "apps/pro"
target-branch: "main"
schedule:
interval: "daily"

# Packages
- package-ecosystem: "npm"
directory: "packages/abis"
Expand Down
1 change: 0 additions & 1 deletion apps/pro/.env.example

This file was deleted.

4 changes: 0 additions & 4 deletions apps/pro/.eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/pro/next-env.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions apps/pro/next.config.js

This file was deleted.

34 changes: 0 additions & 34 deletions apps/pro/package.json

This file was deleted.

17 changes: 0 additions & 17 deletions apps/pro/prisma/schema.prisma

This file was deleted.

25 changes: 0 additions & 25 deletions apps/pro/prisma/seed.ts

This file was deleted.

45 changes: 0 additions & 45 deletions apps/pro/src/abis/FeeCollector.ts

This file was deleted.

7 changes: 0 additions & 7 deletions apps/pro/src/pages/api/index.ts

This file was deleted.

34 changes: 0 additions & 34 deletions apps/pro/src/pages/api/user/[id].ts

This file was deleted.

33 changes: 0 additions & 33 deletions apps/pro/src/pages/api/webhook.ts

This file was deleted.

11 changes: 0 additions & 11 deletions apps/pro/tsconfig.json

This file was deleted.

7 changes: 2 additions & 5 deletions apps/web/src/components/Common/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import getIsAuthTokensAvailable from '@lib/getIsAuthTokensAvailable';
import getToastOptions from '@lib/getToastOptions';
import resetAuthData from '@lib/resetAuthData';
import axios from 'axios';
import { IS_MAINNET, PRO_STATUS_API_URL } from 'data/constants';
import { IS_MAINNET } from 'data/constants';
import type { Profile } from 'lens';
import { ReferenceModules, useUserProfilesQuery } from 'lens';
import Head from 'next/head';
Expand Down Expand Up @@ -102,9 +101,7 @@ const Layout: FC<Props> = ({ children }) => {
useEffect(() => {
if (currentProfile?.id && currentProfile?.id === '0x0d') {
if (IS_MAINNET) {
axios(`${PRO_STATUS_API_URL}/user/${currentProfile?.id}`)
.then(({ data }) => setIsPro(data.isPro))
.catch(() => setIsPro(false));
setIsPro(true);
} else {
setIsPro(true);
}
Expand Down
2 changes: 0 additions & 2 deletions packages/data/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export const SERVERLESS_STAGING_SANDBOX_API_URL = 'https://api-staging-sandbox.l
export const SERVERLESS_SANDBOX_API_URL = 'https://api-sandbox.lenster.xyz';
export const SERVERLESS_DEVELOPMENT_API_URL = 'http://localhost:4784';

export const PRO_STATUS_API_URL = 'https://pro.lenster.xyz';

export const SERVERLESS_URL = getEnvConfig().serverlessEndpoint;
export const API_URL = getEnvConfig().apiEndpoint;
export const LENSHUB_PROXY = getEnvConfig().lensHubProxyAddress;
Expand Down

2 comments on commit b639762

@vercel
Copy link

@vercel vercel bot commented on b639762 Dec 12, 2022

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

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

@vercel
Copy link

@vercel vercel bot commented on b639762 Dec 12, 2022

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:

api – ./apps/api

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

Please sign in to comment.