build
build copied to clipboard
Align `dev` configuration with production configuration
Users can specify configuration properties for netlify dev using a dev section.
[dev]
functions = "my-functions"
Those configuration properties (used locally) are currently handled by Netlify CLI while all the other configuration properties (used in production) are handled in @netlify/config.
For example, file paths in the configuration are normalized as absolute file paths (using some logic that's more complex than one might think). However, dev.functions is not. This is creating some bugs, such as https://github.com/netlify/cli/issues/3345
As part of our push to align local and production behavior, we should make @netlify/config validate and normalize the dev properties. Any logic that is too specific to netlify dev can still be kept in Netlify CLI.
Note: this was discussed with @eduardoboucas in this Slack thread.
Somehow related to https://github.com/netlify/cli/issues/1265.
Also, for the netlify dev command the CLI does naive merging here https://github.com/netlify/cli/blob/121272264ede25fa865eafa2847afb2884daa974/src/commands/dev/index.js#L192
This issue has been automatically marked as stale because it has not had activity in 1 year. It will be closed in 14 days if no further activity occurs. Thanks!
This issue was closed because it had no activity for over 1 year.