Comments (6)
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.
The problem with utils.fucntions.add is that it won't overwrite existing functions, which we need.
from netlify-plugin-gatsby.
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.
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.
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.
Closing as we're handling this differently now
from netlify-plugin-gatsby.
Related Issues (20)
- Test issue
- Background functions HOT 1
- Fix issues with the CI build process HOT 4
- Investigate reducing function .cache folder size by excluding media assets HOT 6
- Update README to include information on adding Background Functions to a site HOT 1
- Issue with linking github organizations HOT 1
- [Bug]: Error when building in netlify HOT 2
- [Bug]: Error: Cannot find module 'common-tags' HOT 6
- [Bug]: netlify build fails with gatsby v5 on node 18 with yarn2 pnp, "Cannot find module 'postcss-color-function'" HOT 1
- [Bug]: Netlify deployment fails with message: "Cannot find module '@gatsbyjs/reach-router/lib/utils'" HOT 3
- [Bug]: Netlify Gatsby plugin causes build failures on Gatsby 2.x site HOT 7
- [Bug] This plugin is running without enabling it HOT 3
- [Bug]: Netlify Gatsby plugin causes build failures on Gatsby 3.4 site HOT 3
- [Test] Verify GitHub workflow HOT 1
- [Bug]: Build has been failing for over a year on live website- only local netlify CLI deploys work HOT 1
- [Bug]: Netlify CI builds failing with error Cannot find module 'common-tags' HOT 2
- [Bug]: Deploying an SSR powered Gatsby app via the Netlify CLI breaks SSR pages HOT 1
- Support gatsby-config.ts
- [Bug]: Image CDN doc has a broken link
- Be more clear that this library is deprecated. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netlify-plugin-gatsby.