Skip to content

Commit

Permalink
Include some more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunoneill-r7 committed Jul 6, 2023
1 parent 63e2adb commit 7677fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import {

const CLOUDFLARE_API_KEY = process.env.CLOUDFLARE_API_KEY;
const DNS_URL = process.env.DNS_URL;
const PROXIED = process.env.PROXIED;
const PROXIED = process.env.PROXIED | false;
const CRON_SCHEDULE = process.env.CRON_SCHEDULE;

// Verify that the environment variables are set
if (!CLOUDFLARE_API_KEY || !DNS_URL) {
if (!CLOUDFLARE_API_KEY || !DNS_URL || (PROXIED !== true && PROXIED !== false)) {
throw new Error('Missing environment variables. Please check the README.');
}

Expand Down

0 comments on commit 7677fdf

Please sign in to comment.