forked from storacha/w3up
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: gate access to the site on having a Stripe plan (#15)
stop users from doing anything in the app until they have signed up for a plan through stripe for now, ignore errors trying to load this screen and just send users along to the next step I'd like to make this just a little more convenient for developers before I merge it, looking for thoughts at demos tomorrow morning...
- Loading branch information
Travis Vachon
authored
Nov 6, 2023
1 parent
e3439b1
commit 23c557e
Showing
8 changed files
with
301 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1NzhdvF6A5ufQX5vKNZuRhie | ||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_51LO87hF6A5ufQX5viNsPTbuErzfavdrEFoBuaJJPfoIhzQXdOUdefwL70YewaXA32ZrSRbK4U4fqebC7SVtyeNcz00qmgNgueC | ||
|
||
# set these to your upload API service URL and the DID your service is using as its service DID | ||
NEXT_PUBLIC_W3UP_SERVICE_URL=https://up.web3.storage | ||
NEXT_PUBLIC_W3UP_SERVICE_DID=did:web:web3.storage | ||
|
||
# set these to values from Stripe settings | ||
NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID=prctbl_1NzhdvF6A5ufQX5vKNZuRhie | ||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_51LO87hF6A5ufQX5viNsPTbuErzfavdrEFoBuaJJPfoIhzQXdOUdefwL70YewaXA32ZrSRbK4U4fqebC7SVtyeNcz00qmgNgueC | ||
|
||
# set this to skip forcing users to pick a Stripe plan | ||
NEXT_PUBLIC_DISABLE_PLAN_GATE=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.