“and I’ve heard from dozens of them and only one of you”
This is… so not true… There are more people who have trouble with this.
Sorry, the proposed workaround is quite vague… Can you please explain the code a bit better?
// package.json
"scripts": {
"build": "gatsby build -i -E "s/__CONTEXT__/$CONTEXT/",
}
I am using Gatsby for my projects. Is this the correct way to configure my build command?
What does the “-i -E” mean?
// ./functions/func.js
const context = '__CONTEXT__';
So, if I understand this correctly the context should output:
- production
- deploy-preview
- branch-deploy
Is it possible to set up a custom context?
Peace and Love,
Anton