Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: handle no env vars
Marc Seitz39470e4ca893
diff --git a/lib/content/help.ts b/lib/content/help.tsindex b5d5424d..30500ac0 100644--- a/lib/content/help.ts+++ b/lib/content/help.ts@@ -20,6 +20,10 @@ const GITHUB_CONTENT_TOKEN = process.env.GITHUB_CONTENT_TOKEN;const GITHUB_CONTENT_REPO = process.env.GITHUB_CONTENT_REPO;export const getHelpArticles = cache(async () => {+ if (!GITHUB_CONTENT_REPO || !GITHUB_CONTENT_TOKEN) {+ return [];+ }+const apiUrl = `https://api.github.com/repos/${GITHUB_CONTENT_REPO}/contents/content/help`;const headers = {Authorization: `Bearer ${GITHUB_CONTENT_TOKEN}`,