Skip to content

Add a default directory for Netlify Functions #2016

@ehmicky

Description

@ehmicky

Background at https://github.com/netlify/pod-the-builder/issues/91 and https://github.com/netlify/product/issues/257

When @netlify/config is run and both:

  • no Functions directory was specified neither in the netlify.toml nor in the UI build settings
  • a netlify-automatic-functions directory exists in the build directory

The build.functions configuration property should be set to netlify-automatic-functions.

This means, users will now be able to use Netlify Functions without specifying a Functions directory setting, by using the default directory name instead.

Based on the feedback we get in https://github.com/netlify/buildbot/issues/1033, we might also want to rename this default value to netlify-functions or functions instead.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions