GithubHelp home page GithubHelp logo

Serve the full website about netlify-lambda HOT 5 CLOSED

netlify avatar netlify commented on August 15, 2024
Serve the full website

from netlify-lambda.

Comments (5)

sparkalow avatar sparkalow commented on August 15, 2024

@niicojs It makes sense for me. I'll use your fork unless/until there is an alternative.

from netlify-lambda.

DavidWells avatar DavidWells commented on August 15, 2024

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.

sparkalow avatar sparkalow commented on August 15, 2024

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.

8eecf0d2 avatar 8eecf0d2 commented on August 15, 2024

@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.

swyxio avatar swyxio commented on August 15, 2024

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)

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.