Prerequisites : NodeJS >= 14 LTS
Install the Gatsby CLI
npm install -g gatsby-cli
Clone the repository and run npm install
to collect all dependencies
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 gatsby develop
in a terminal to start the dev site
Run gatsby build
then gatsby serve
Run gatsby clean
Currently the project use both local file and one remote source on Notion to source data.
Custom plugins :
/src/content/offres-descriptions
gatsby-transformer-remark
) from description attribute in src/data/xxx.csv
. The CSV files are provided thru the plugin option nodeTypes
.gatsby-source-notion-api
to create event pagesgatsby-transformer-remark
) from description attribute in nodes created by gatsby-source-notion-api
https://github.com/codebushi/gatsby-starter-forty -> Updated to Gatsby V3 in this repository
force rebuild