Comments (5)
@niicojs It makes sense for me. I'll use your fork unless/until there is an alternative.
from netlify-lambda.
There are many different ways people serve their app depending on the framework, setup, etc. etc. etc.
I'd suggest an approach like this https://github.com/netlify/netlify-faunadb-example/blob/master/package.json#L15-L17
Where you can use npm-run-all
to run the function code + your web app in the same terminal session.
If you clone down that repo, npm install
, and npm start
you can see it in action
from netlify-lambda.
Thanks for the suggestion @DavidWells. In my specific case I'm not using react or webpack and don't want those additional dependencies just to proxy requests. I'm using browsersync for serving static files and can proxy netlify-lambda functions locally, but without native rewrite support. This makes niicojs' idea/fork useful to me.
from netlify-lambda.
@sparkalow if you're still looking for alternatives, I've written 8eecf0d2/netlify-local to support more Netlify services locally, namely the static file server for the publish
directory of netlify.toml
configs. Webpack is included as a dependency but usage is completely optional.
from netlify-lambda.
Thanks all - i think we're gonna keep netlify-lambda small/general as possible. But @8eecf0d2 and @niicojs's approaches are interesting and i will link to you from the github. if we get more feedback like this from people i am open to reopening this
from netlify-lambda.
Related Issues (20)
- Add Nodejs 12 runtime support HOT 3
- Instructions for using package.json with typescript (`install` with `build`)
- .netlify/functions does not work until I manually move files HOT 1
- chore: use eslint-config-node
- refactor: switch to async I/O HOT 1
- Action Required: Fix Renovate Configuration HOT 1
- netlify-lambda build does not seem to copy non-js file HOT 4
- Netlify lambda function query string parameters are passed in different way between local environment and production envionment HOT 2
- Upgrade to webpack 5 HOT 5
- Bug in uploading file HOT 7
- Netlify claiming use of dependency that doesn't exist? HOT 2
- 5 moderate severity vulnerabilities HOT 1
- HTTP headers already sent HOT 3
- netlify serve doesn't work with apollo v3 HOT 9
- [security] Enforce Branch Protections
- How to deploy my application to `netlify`? HOT 1
- Incompatability with Express.js static() method HOT 1
- IgnorePluginOptions error while building functions: vertx HOT 2
- Handlers that serves jpg / static image not returning correct image HOT 2
- Project state 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-lambda.