From 4316288f7185eb7f85c693af4d026c88b69bec2c Mon Sep 17 00:00:00 2001 From: plouc Date: Sun, 26 Dec 2021 12:48:35 +0900 Subject: [PATCH] feat(website): use netlify url if available --- website/gatsby-config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/gatsby-config.js b/website/gatsby-config.js index a336902bcb..6f7f387f41 100644 --- a/website/gatsby-config.js +++ b/website/gatsby-config.js @@ -1,4 +1,7 @@ -const siteUrl = process.env.SITE_URL || 'https://nivo.rocks' // no trailing slash +// 1. custom env var +// 2. netlify deployment +// 3. main site +const siteUrl = process.env.SITE_URL || process.env.DEPLOY_URL || 'https://nivo.rocks' // no trailing slash module.exports = { siteMetadata: {