ToulouseDataViz / website

L'espace de dévelopment du site web toulouse-dataviz.fr
2 stars 2 forks source link

How to

Environment variables

On the .env model, create .env.development file and fill the fields with the corresponding information

INTEGRATION_TOKEN=secret_notionAPI_token
DATABASE_ID=ae5354e0-d1ce-4b2a-bf3a-5396b14d206b

Netlify hosts those environment variables so you do not need to edit the .env file for website deployment.

To prevent triggering a deploy on Netlify at pull request and merge on main, add [skip netlify] in the commit message (Details).

Run locally

Development mode

Run gatsby develop in a terminal to start the dev site

Build mode

Run gatsby build then gatsby serve

Clean

Run gatsby clean

Data sourcing & custom plugins

Currently the project use both local file and one remote source on Notion to source data.

Custom plugins :

Forked from gatsby-starter-forty

https://github.com/codebushi/gatsby-starter-forty -> Updated to Gatsby V3 in this repository

force rebuild