Git Product home page Git Product logo

Comments (6)

ai avatar ai commented on June 21, 2024 1

We can add ignoreNonWsRequest (I will think about a better name) to Server options.

from server.

ai avatar ai commented on June 21, 2024

We call request for health check feature.

  1. The proper API to own HTTP callbacks is loguxServer.http(). Am I right that you can’t use because you want to use syntax sugar API like polka? Can we add something to make it compatible with polka?
  2. Maybe you have in mind some another API to keep Logux server health check and another request processor?

from server.

g12i avatar g12i commented on June 21, 2024

I imagine this passing custom http server is an advanced use case, where people are aware what they are doing. Would adding a note in documentation that Logux requires GET /health endpoint be enough?

I need to use some advanced connect middlewares. This is entirely possible, as long as Logux is not listening on its own. In my view it's better to allow utilising well-known patterns, as oppose to trying do everything in Logux itself. What do you think?

from server.

ai avatar ai commented on June 21, 2024

I added disableHttpServer to next branch 5e4210e

You can switch from npm version to next from GitHub to test it:

yarn remove @logux/server && yarn add @logux/server@logux/server#next

from server.

g12i avatar g12i commented on June 21, 2024

Hi @ai. Sorry for late response, we were busy with other features. I'm afraid I cannot test it locally:

❯ yarn add @logux/server@logux/server#next
➤ YN0000: ┌ Resolution step
➤ YN0013: │ @logux/server@https://github.com/logux/server.git#commit=2f8deab4c59941074177ec08ae08a61cc33da9bf can't be found in the cache and will be fetched from GitHub
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0013: │ @logux/server@https://github.com/logux/server.git#commit=2f8deab4c59941074177ec08ae08a61cc33da9bf can't be found in the cache and will be fetched from the remot
➤ YN0001: │ Error: @logux/server@https://github.com/logux/server.git#commit=2f8deab4c59941074177ec08ae08a61cc33da9bf: Assertion failed: Unsupported workflow
    at /Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:427:1576
    at async ar.mktempPromise (/Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:319:63575)
    at async /Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:424:16
    at async ar.mktempPromise (/Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:319:63575)
    at async /Users/wojciech/Projects/akeero-logux/.yarn/releases/yarn-3.2.1.cjs:419:2513
➤ YN0000: └ Completed in 5s 129ms
➤ YN0000: Failed with errors in 5s 135ms

from server.

ai avatar ai commented on June 21, 2024

Another way to test it just to copy-paste files from the repo to node_modules/@logux/server

from server.

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.