$ lando yarn install
$ lando gatsby new my-drupal-gatsby
$ lando gatsby develop --host 0.0.0.0
Your Gatsby url can be found via
$ lando info
Visit http://MYSITE.lndo.site/___graphql
In gatsby-config.js
, modify the slogan
slogan: `My slogan is better than yours`
Paste the following query to graphql explorer
{
site {
siteMetadata {
title
slogan
author
}
}
}
When you need to install an NPM package, use
$ lando yarn add <package>
Example:
$ lando yarn add gatsby-source-drupal
Whenever you are ready to change branches, be sure you do the following:
$ git checkout 01-branch-name
$ git reset --hard 01-branch-name
$ lando yarn install
$ lando gatsby develop --host 0.0.0.0