Skip to content

Commit 9b5ca42

Browse files
committed
Dashboard: Remove unused envs from .env.example and turbo config (#7779)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR primarily focuses on cleaning up the environment variables in the `turbo.json` and `.env.example` files, removing several unused keys and updating comments for clarity. ### Detailed summary - Removed multiple environment variables from `turbo.json`. - Updated comments and reorganized sections in `apps/dashboard/.env.example`. - Added `NEXT_PUBLIC_THIRDWEB_VAULT_URL` and `NEXT_PUBLIC_ENGINE_CLOUD_URL` as required. - Clarified purpose for `DASHBOARD_SECRET_KEY` and `API_ROUTES_CLIENT_ID`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Cleaned up and reorganized environment variable examples for improved clarity and usability. * Removed deprecated and unused environment variables. * Updated placeholder formatting and improved instructions for setting required variables. * Simplified and reduced the environment variable list used during dashboard build tasks. * Added new environment variables for insight service and Stripe integration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent c6849a8 commit 9b5ca42

File tree

2 files changed

+22
-62
lines changed

2 files changed

+22
-62
lines changed

apps/dashboard/.env.example

Lines changed: 20 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
1-
#
21
# Public (client)
3-
#
4-
5-
# API authorized domain
6-
# not required to build, defaults to prod
7-
NEXT_PUBLIC_THIRDWEB_DOMAIN="localhost:3000"
2+
# ------------------------------------------------------------------------
83

94
# API host. For local development, please use "https://api.thirdweb-dev.com"
105
# otherwise: "https://api.thirdweb.com"
6+
# local host - http://127.0.0.1:3005
117
NEXT_PUBLIC_THIRDWEB_API_HOST="https://api.thirdweb-dev.com"
128

139
# Bridge API. For local development, please use "https://bridge.thirdweb-dev.com"
1410
# otherwise: "https://bridge.thirdweb.com"
1511
NEXT_PUBLIC_THIRDWEB_BRIDGE_HOST="https://bridge.thirdweb-dev.com"
1612

17-
# Paper API host
13+
# in-app wallet host
1814
NEXT_PUBLIC_THIRDWEB_EWS_API_HOST="https://ews.thirdweb-dev.com"
1915

20-
# thirdweb local api host
21-
# NEXT_PUBLIC_THIRDWEB_API_HOST="http://127.0.0.1:3005"
22-
23-
# Client ID
24-
# Get the client id from https://thirdweb.com/create-api-key and set it here,
16+
# Client ID - Required
17+
# Get the client id from https://thirdweb.com/create-api-key and set it here, and also set DASHBOARD_SECRET_KEY below
2518
# make sure to allow localhost:3000 in the allowed origins
26-
NEXT_PUBLIC_DASHBOARD_CLIENT_ID="<replace_me_with_your_client_id>"
19+
NEXT_PUBLIC_DASHBOARD_CLIENT_ID=""
2720

2821
# IPFS gateway url
2922
NEXT_PUBLIC_IPFS_GATEWAY_URL="https://{clientId}.thirdwebstorage-dev.com/ipfs/{cid}/{path}"
@@ -39,54 +32,35 @@ NEXT_PUBLIC_TYPESENSE_CONTRACT_API_KEY=
3932
# - not required for prod/staging
4033
NEXT_PUBLIC_POSTHOG_KEY=""
4134

42-
# Stripe Customer portal
43-
NEXT_PUBLIC_STRIPE_KEY=
44-
45-
NEXT_PUBLIC_STRIPE_PAYMENT_METHOD_CFG_ID=
46-
47-
#
48-
# Private (server)
49-
#
50-
# Get the secret key from https://thirdweb.com/create-api-key and set it here, Make sure to allow localhost:3000 in the allowed origins
51-
DASHBOARD_SECRET_KEY="<replace_me_with_your_secret_key>"
52-
53-
# Client id for api routes
54-
API_ROUTES_CLIENT_ID=
35+
# required for server wallet management
36+
NEXT_PUBLIC_THIRDWEB_VAULT_URL=""
37+
NEXT_PUBLIC_ENGINE_CLOUD_URL=""
5538

5639

40+
# Demo Engine - required for showing demo engine page
41+
NEXT_PUBLIC_DEMO_ENGINE_URL=""
5742

58-
# Hubspot Access Token (used for contact us form)
59-
# - not required to build (unless testing contact us form)>
60-
HUBSPOT_ACCESS_TOKEN=
6143

62-
# Upload server url
63-
NEXT_PUBLIC_DASHBOARD_UPLOAD_SERVER="https://storage.thirdweb-preview.com"
44+
# Private (server)
45+
# ------------------------------------------------------------------------
6446

65-
# Unthread variables - only required for submitting the support form in /support
66-
UNTHREAD_API_KEY=""
67-
UNTHREAD_TRIAGE_CHANNEL_ID=""
68-
UNTHREAD_EMAIL_INBOX_ID=""
69-
UNTHREAD_FREE_TIER_ID=""
70-
UNTHREAD_GROWTH_TIER_ID=""
71-
UNTHREAD_PRO_TIER_ID=""
47+
# Get the secret key from https://thirdweb.com/create-api-key and set it here and also set NEXT_PUBLIC_DASHBOARD_CLIENT_ID above,
48+
# Make sure to allow localhost:3000 in the allowed origins
49+
DASHBOARD_SECRET_KEY="<replace_me_with_your_secret_key>"
7250

73-
# Demo Engine
74-
NEXT_PUBLIC_DEMO_ENGINE_URL=""
51+
# Client id for api routes - required for contract OG image generation
52+
API_ROUTES_CLIENT_ID=
7553

7654
# API server secret (required for thirdweb.com SIWE login). Copy from Vercel.
7755
API_SERVER_SECRET=""
7856

79-
# Used for the Faucet page (/<chain_id>)
57+
# Used in faucet on chain page (/<chain-id>) and login page (/login) - turnstile is disabled in localhost development
8058
NEXT_PUBLIC_TURNSTILE_SITE_KEY=""
8159
TURNSTILE_SECRET_KEY=""
60+
8261
REDIS_URL=""
8362

8463
ANALYTICS_SERVICE_URL=""
8564

86-
8765
# required for billing parts of the dashboard (team -> settings -> billing / invoices)
8866
STRIPE_SECRET_KEY=""
89-
90-
# required for server wallet management
91-
NEXT_PUBLIC_THIRDWEB_VAULT_URL=""
92-
NEXT_PUBLIC_ENGINE_CLOUD_URL=""

turbo.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,38 +72,24 @@
7272
"dependsOn": ["^build"],
7373
"env": [
7474
"SENTRY_AUTH_TOKEN",
75-
"MORALIS_API_KEY",
76-
"ETHERSCAN_KEY",
77-
"SSR_ALCHEMY_KEY",
7875
"BEEHIIV_API_KEY",
79-
"GITHUB_API_TOKEN",
80-
"LUMA_API_KEY",
81-
"HUBSPOT_ACCESS_TOKEN",
8276
"API_ROUTES_CLIENT_ID",
8377
"DASHBOARD_SECRET_KEY",
8478
"SIMPLEHASH_API_KEY",
85-
"NEYNAR_API_KEY",
8679
"THIRDWEB_ENGINE_URL",
8780
"THIRDWEB_ACCESS_TOKEN",
8881
"THIRDWEB_ENGINE_ACCESS_TOKEN",
89-
"DEGEN_THIRDWEB_ENGINE_WALLET",
9082
"THIRDWEB_ENGINE_WALLET",
91-
"UNTHREAD_TRIAGE_CHANNEL_ID",
92-
"UNTHREAD_EMAIL_INBOX_ID",
93-
"UNTHREAD_FREE_TIER_ID",
94-
"UNTHREAD_GROWTH_TIER_ID",
95-
"UNTHREAD_PRO_TIER_ID",
9683
"REDIS_URL",
97-
"UNTHREAD_API_KEY",
98-
"CHAINSAW_API_KEY",
9984
"ANALYTICS_SERVICE_URL",
10085
"DISABLE_FAUCET_CHAIN_IDS",
10186
"API_SERVER_SECRET",
10287
"TURNSTILE_SECRET_KEY",
10388
"NEXT_PUBLIC_TURNSTILE_SITE_KEY",
10489
"NEXT_PUBLIC_THIRDWEB_ENGINE_FAUCET_WALLET",
10590
"NEXT_PUBLIC_NEBULA_URL",
106-
"INSIGHT_SERVICE_API_KEY"
91+
"INSIGHT_SERVICE_API_KEY",
92+
"STRIPE_SECRET_KEY"
10793
],
10894
"outputs": [".next/**", "!.next/cache/**"]
10995
},

0 commit comments

Comments
 (0)