Skip to content

Commit

Permalink
feat: move STRIPE from .dev.vars to .env
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyu2er committed Dec 28, 2024
1 parent 7655954 commit c6c8c95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:
STORAGE_ACCESS_KEY_ID: ${{ secrets.STORAGE_ACCESS_KEY_ID }}
STORAGE_SECRET_ACCESS_KEY: ${{ secrets.STORAGE_SECRET_ACCESS_KEY }}
CF_TURNSTILE_SECRET_KEY: ${{ secrets.CF_TURNSTILE_SECRET_KEY }}
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
EOF
cat ${{ env.APP_DIR }}/.env
Expand All @@ -102,8 +104,6 @@ jobs:
id: deploy
uses: cloudflare/wrangler-action@v3
env:
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
DEFAULT_DOMAINS: ${{ secrets.DEFAULT_DOMAINS }}
REDIRECT_DATASET: ${{ secrets.REDIRECT_DATASET }}
CF_WAE_API_TOKEN: ${{ secrets.CF_WAE_API_TOKEN }}
Expand All @@ -119,8 +119,6 @@ jobs:
ls .open-next
command: deploy
secrets: |
STRIPE_SECRET_KEY
STRIPE_WEBHOOK_SECRET
DEFAULT_DOMAINS
REDIRECT_DATASET
CF_WAE_API_TOKEN
Expand Down
5 changes: 1 addition & 4 deletions apps/app/.dev.vars.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# Stripe
STRIPE_SECRET_KEY=
# Set this environment variable to support webhooks — https://stripe.com/docs/webhooks#verify-events
STRIPE_WEBHOOK_SECRET=


# default domains, comma separated
DEFAULT_DOMAINS=localhost:7001
Expand Down
5 changes: 3 additions & 2 deletions apps/app/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ STORAGE_SECRET_ACCESS_KEY=
# == Stripe ==
# https://dashboard.stripe.com/apikeys
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=


STRIPE_SECRET_KEY=
# https://stripe.com/docs/webhooks#verify-events
STRIPE_WEBHOOK_SECRET=

0 comments on commit c6c8c95

Please sign in to comment.