Personal site built with Gatsby.
Netlify is configured by netlify.toml to publish public and run ./stackbit-build.sh.
stackbit-build.sh currently preserves the legacy Stackbit workflow:
- If
STACKBIT_API_KEYis present, it runs@stackbit/stackbit-pullbefore the Gatsby build. - If
STACKBIT_API_KEYis absent, it builds only the content committed to this repo. - If
src/pages/postsexists, it rewrites the legacy post signature text. The directory is resolved from the current checkout instead of assuming Netlify's/opt/build/repopath.
The live Netlify branch, environment variables, and rollback path must be confirmed in Netlify before changing production settings.
Use Node 14, matching .nvmrc, because this site is still on Gatsby 2 and node-sass.
nvm use
npm ci
npm run developBrowse to http://localhost:8000/.
To build only committed content:
nvm use
npm ci
npm run buildTo reproduce the legacy Stackbit-assisted Netlify build:
nvm use
npm ci
export STACKBIT_API_KEY=...
./stackbit-build.sh