Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
feat: update available environment variables (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alezco authored Aug 28, 2020
1 parent f0570c4 commit 1fcb0e3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MATOMO_APPLICATION_ID=20
MATOMO_URL=https://matomo.fabrique.social.gouv.fr
SITE_URL=https://archifiltre.fabrique.social.gouv.fr
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MATOMO_APPLICATION_ID=20
MATOMO_URL=https://matomo.fabrique.social.gouv.fr
SITE_URL=https://archifiltre.fabrique.social.gouv.fr
3 changes: 3 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MATOMO_APPLICATION_ID=20
MATOMO_URL=https://matomo.fabrique.social.gouv.fr
SITE_URL=https://archifiltre.fabrique.social.gouv.fr
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ typings/
# Output of 'npm pack'
*.tgz

# dotenv environment variable files
.env*

# gatsby files
.cache/
public
Expand Down
5 changes: 3 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const path = require(`path`);
require("dotenv").config({
path: `.env.${process.env.NODE_ENV || "dev"}`,
});

console.log("===========================");
console.log("process.env", process.env);
console.log("===========================");
module.exports = {
plugins: [
`gatsby-plugin-typescript`,
Expand All @@ -14,7 +16,6 @@ module.exports = {
`gatsby-plugin-sharp`,
{
options: {
dev: true,
matomoUrl: process.env.MATOMO_URL,
siteId: process.env.MATOMO_APPLICATION_ID,
siteUrl: process.env.SITE_URL,
Expand Down

0 comments on commit 1fcb0e3

Please sign in to comment.