Skip to content

Remove zip-it-and-ship-it call #31

Description

@ehmicky

This plugin is using zip-it-and-ship-it directly to bundle a Function which is being dynamically added.

Calling zip-it-and-ship-it in this instance is creating several bugs (including this one). This is because the logic behind zip-it-and-ship-it is now more complex than it used to be: there can be multiple source directories, configuration options, feature flags, etc. Those new details are lost when netlify-plugin-search-index calls zip-it-and-ship-it again.

Fortunately, it turns out that Netlify now automatically bundles Functions added inside builds, providing the Function is added inside onPreBuild or onBuild. So, it feels like it should be possible to just remove that line of code and change the event from onPostBuild to onBuild?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions