Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Dec 4, 2024
1 parent 6022caf commit fb20eae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/screenshot-comparison.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: npm install

- name: Build project
env:
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
run: npm run build

# "&" starts the server in the background, don't wait for it to finish, and move on
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { config } from "@/config";

// Get Stripe Secret Key from environment variables
const STRIPE_SECRET_KEY = config.STRIPE_SECRET_KEY;
// if (isPrd && !STRIPE_SECRET_KEY) throw new Error("STRIPE_SECRET_KEY is not set");
if (!STRIPE_SECRET_KEY) throw new Error("STRIPE_SECRET_KEY is not set");

/**
* Initialize Stripe. Server-side only.
Expand Down

0 comments on commit fb20eae

Please sign in to comment.