-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the proper CONTEXT
for local builds?
#792
Comments
Here is a related CLI issue netlify/cli#275 It should work similar to the However, when you run a local build, it makes the most sense to build for The ideal CI flow would be:
|
Since
|
I don’t think so. ‘netlify build’ should run the prod build |
Agreed w/ @DavidWells - when running build through the CLI,
Frontend devs are used to |
Sounds good. Done at #849. |
is it safe to say that I recently updated to 3.7.1 from 2.70 and this is breaking my dev environment. the netliy.toml context.production.environment is being injected into my dev env. |
When builds are run locally (through the Netlify CLI or programmatically), should the
CONTEXT
be:production
?local
?One concern I have with using
production
is that users might have production settings (URLs, databases, etc.) that should not be used on local machines. Having a separatelocal
context would allow users to distinguish between both environment in their configuration file (with thecontext.*
property).What are your thoughts?
@DavidWells @verythorough @kitop @fool
The text was updated successfully, but these errors were encountered: