Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Functions do not deploy when following README #55

@rickh94

Description

@rickh94

- What is the current behavior?
Functions do not deploy to Netlify when a functions directory is specified as functionsDir in opts object of client.deploy(), as described in the API Flow methods section of README.md, and instead are silently skipped. Functions do deploy when a function directory is specified as fnDir, matching implementation in src/deploy/index.js.

- If the current behavior is a bug, please provide the steps to reproduce.

  1. Attempt to deploy functions using client.deploy('SOME_SITE_ID', './dist', { functionsDir: './functions' } as in README.md. Functions do not deploy.
  2. Change to client.deploy('SOME_SITE_ID', './dist', { fnDir: './functions' }. Functions deploy correctly.

- What is the expected behavior?
Opts for client.deploy match in README and functionality.

- Please mention your node.js, and operating system version.
Node v8.11.0
Ubuntu 19.04/disco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions