unjs / h3

⚡️ Minimal H(TTP) framework built for high performance and portability

Home Page:https://h3.unjs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Is it possible to start the server without listhen?

jolo-dev opened this issue · comments

commented

Describe the change

I am currently building something where I want to "click" on a button or use the CLI to enter some parameter/variables to start the server. But for now, it seems that you need to run listhen. Is it possible to run the app without it?

URLs

No response

Additional information

  • Would you be willing to help?
commented

Or how can I add parameters to the listhen ?

You can run h3 using the node:http adapter, it's documented here. You can also call listhen from code, that's documented here.

commented

The first one is what I needed thanks @zusorio 🤩