Skip to content

Conversation

wyattjoh
Copy link
Contributor

The Google provider will use the entrypoint not from the definition of the handler function, but instead from the package.json:main field, or via a index.js file (See Google Cloud Docs for a reference).

This change modifies the behaviour of the extractFileNames to enforce only discovery of those entry points that are used by the Google Cloud Functions runtime.

These changes are backwards compatible with any existing AWS provider.

@schickling
Copy link
Contributor

That's an awesome contribution. Thanks a lot!

Would you mind adding a little section to the README on how to use this for GCP?

@wyattjoh
Copy link
Contributor Author

Just added the requested docs update @schickling :)!

@schickling schickling merged commit 90a3aeb into serverless:master Aug 11, 2017
@schickling
Copy link
Contributor

Just release a new version!

@wyattjoh wyattjoh deleted the google-functions-support branch August 11, 2017 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants