Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edge-runtime --listen examples/fetch exits right away #65

Closed
steren opened this issue Jul 30, 2022 · 1 comment · Fixed by #66
Closed

edge-runtime --listen examples/fetch exits right away #65

steren opened this issue Jul 30, 2022 · 1 comment · Fixed by #66

Comments

@steren
Copy link
Contributor

steren commented Jul 30, 2022

Trying to follow the CLI docs to run edge-runtime on my local Node.js 16 environment.

Steps:

  1. copy example/fetch.js to a local example/fetch.js file.
  2. run npm -g install edge-runtime
  3. run edge-runtime --listen examples/fetch

Observed: the command exits right away

Expected: an HTTP server is started, executing fetch.js on every request.

@steren
Copy link
Contributor Author

steren commented Jul 30, 2022

Oh, it looks like edge-runtime --listen examples/fetch.js works

steren added a commit to steren/edge-runtime that referenced this issue Jul 30, 2022
jridgewell pushed a commit to jridgewell/edge-runtime that referenced this issue Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant