Skip to content

Commit

Permalink
feat(website): use netlify url if available
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Dec 26, 2021
1 parent d175ef7 commit 4316288
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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: {
Expand Down

0 comments on commit 4316288

Please sign in to comment.