Skip to content

Commit

Permalink
chore: improve Stripe disabled message (denoland#624)
Browse files Browse the repository at this point in the history
This console message directs the dev to where they can learn to set up
Stripe.
  • Loading branch information
iuioiua authored Oct 9, 2023
1 parent c3937fe commit 07d1c15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { isStripeEnabled } from "@/utils/stripe.ts";
console.log(
isStripeEnabled()
? "`STRIPE_SECRET_KEY` environment variable is defined. Stripe is enabled."
: "`STRIPE_SECRET_KEY` environment variable is not defined. Stripe is disabled.",
: "`STRIPE_SECRET_KEY` environment variable is not defined. Stripe is disabled.\n" +
"For more information on how to set up Stripe, see https://github.com/denoland/saaskit#set-up-stripe-optional",
);

await start(manifest, config);

0 comments on commit 07d1c15

Please sign in to comment.