build icon indicating copy to clipboard operation
build copied to clipboard

Align `dev` configuration with production configuration

Open ehmicky opened this issue 4 years ago • 1 comments

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.

ehmicky avatar Sep 16 '21 12:09 ehmicky

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

erezrokah avatar Sep 29 '21 09:09 erezrokah

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!

github-actions[bot] avatar Mar 25 '23 14:03 github-actions[bot]

This issue was closed because it had no activity for over 1 year.

github-actions[bot] avatar Apr 08 '23 14:04 github-actions[bot]