fix url and add safeguard

This commit is contained in:
Karol Wypchlo 2022-05-05 11:03:00 +02:00
parent f779d1618d
commit 318210e556
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 5 additions and 1 deletions

View File

@ -1,11 +1,15 @@
const { defaultIcons } = require("gatsby-plugin-manifest/common");
if (!process.env.PORTAL_DOMAIN) {
throw new Error("PORTAL_DOMAIN cannot be empty");
}
module.exports = {
siteMetadata: {
title: `Skynet`,
description: `Skynet is a decentralized file sharing and content distribution protocol`,
author: `Skynet Labs`,
siteUrl: process.env.PORTAL_DOMAIN,
siteUrl: `https://${process.env.PORTAL_DOMAIN}`,
image: `/icons/icon-512x512.png`,
},
plugins: [