site: don't crash when BASEURL env isn't set

pull/3476/head
Conduitry 5 years ago
parent 64c56eddcd
commit 5b4758f0f8

@ -1,6 +1,6 @@
export const oauth = 'https://github.com/login/oauth';
export const baseurl = process.env.BASEURL;
export const secure = baseurl.startsWith('https:');
export const secure = baseurl && baseurl.startsWith('https:');
export const client_id = process.env.GITHUB_CLIENT_ID;
export const client_secret = process.env.GITHUB_CLIENT_SECRET;
Loading…
Cancel
Save