Giter Site home page Giter Site logo

Comments (6)

ascorbic avatar ascorbic commented on June 2, 2024 2

Yeah. I'm mostly interested in when we can use the private functions directory that @eduardoboucas is working on, and I'm guessing that will also require changes in the helper to specify which one

from netlify-plugin-gatsby.

ascorbic avatar ascorbic commented on June 2, 2024

The problem with utils.fucntions.add is that it won't overwrite existing functions, which we need.

from netlify-plugin-gatsby.

ehmicky avatar ehmicky commented on June 2, 2024

That's correct, good point.
I'm happy to change utils.functions.add() behavior to allow overwrites, since this seems to make more sense for plugin authors. What do you think?

from netlify-plugin-gatsby.

eduardoboucas avatar eduardoboucas commented on June 2, 2024

Yeah. I'm mostly interested in when we can use the private functions directory that @eduardoboucas is working on, and I'm guessing that will also require changes in the helper to specify which one

This will be possible with netlify/zip-it-and-ship-it#537. The PR sheds some light on what this will look like from the zip-it-and-ship-it side.

Once that lands, we can either make plugins add their own private directories to the config via onPreBuild (e.g. netlify-gatsby-plugin would add .netlify/netlify-gatsby-plugin-functions), or we make Netlify Build look for a generic .netlify/functions-internal (name TBD) directory.

from netlify-plugin-gatsby.

ascorbic avatar ascorbic commented on June 2, 2024

Once that lands, we can either make plugins add their own private directories to the config via onPreBuild (e.g. netlify-gatsby-plugin would add .netlify/netlify-gatsby-plugin-functions), or we make Netlify Build look for a generic .netlify/functions-internal (name TBD) directory.

My opinions would be that a shared internal-functions directory would be best, otherwise it will be confusing about priorities for clashing names

from netlify-plugin-gatsby.

ascorbic avatar ascorbic commented on June 2, 2024

Closing as we're handling this differently now

from netlify-plugin-gatsby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.