Skip to content

Commit

Permalink
Merge pull request #119 from MAGICGrants/missing-env-fix
Browse files Browse the repository at this point in the history
fix: set missing printful env variables
  • Loading branch information
Keeqler authored Dec 23, 2024
2 parents 8a993b3 + 636df77 commit 37dafed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ KEYCLOAK_CLIENT_ID="app"
KEYCLOAK_CLIENT_SECRET=""
KEYCLOAK_REALM_NAME="magic"

PRINTFUL_API_KEY=""
PRINTFUL_WEBHOOK_SECRET=""

MONERO_APPLICATION_RECIPIENT=""
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
STRIPE_PRIVACY_GUIDES_WEBHOOK_SECRET=${{ secrets.STRIPE_PRIVACY_GUIDES_WEBHOOK_SECRET }} \
STRIPE_GENERAL_SECRET_KEY=${{ secrets.STRIPE_GENERAL_SECRET_KEY }} \
STRIPE_GENERAL_WEBHOOK_SECRET=${{ secrets.STRIPE_GENERAL_WEBHOOK_SECRET }} \
PRINTFUL_API_KEY=${{ secrets.PRINTFUL_API_KEY }} \
PRINTFUL_WEBHOOK_SECRET=${{ secrets.PRINTFUL_WEBHOOK_SECRET }} \
KEYCLOAK_URL=${{ secrets.KEYCLOAK_URL }} \
KEYCLOAK_CLIENT_SECRET=${{ secrets.KEYCLOAK_CLIENT_SECRET }} \
BTCPAY_URL=${{ secrets.BTCPAY_URL }} \
Expand Down
3 changes: 1 addition & 2 deletions env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ export const env = createEnv({
BTCPAY_WEBHOOK_SECRET: z.string().min(1),

PRINTFUL_WEBHOOK_SECRET: z.string().min(32),
PRINTFUL_API_KEY: z.string().min(1),

MONERO_APPLICATION_RECIPIENT: z.string().email(),
FIRO_APPLICATION_RECIPIENT: z.string().email(),
PRIVACY_GUIDES_APPLICATION_RECIPIENT: z.string().email(),
GENERAL_APPLICATION_RECIPIENT: z.string().email(),

PRINTFUL_API_KEY: z.string().min(1),
},
/*
* Environment variables available on the client (and server).
Expand Down

0 comments on commit 37dafed

Please sign in to comment.