supabase / edge-runtime

A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services.
MIT License
691 stars 62 forks source link

`--static` flag cannot be used multiple times #431

Closed djalmajr closed 4 weeks ago

djalmajr commented 4 weeks ago

Hello everyone. I'm having trouble sending multiple extensions in the --static argument using the examples provided here. Could someone please assist me with this?

How can I support multiple extensions? For example:

edge_runtime start --main-service ./examples/main --static "./examples/**/*.{txt,json,yaml}"

Unfortunately, this doesn't work. This doesn't work either:

edge_runtime start --main-service ./examples/main --static "./examples/**/*.txt" --static "./examples/**/*.json"

It gives me:

error: the argument '--static <Path>' cannot be used multiple times

nyannyacha commented 4 weeks ago

Hello @djalmajr 😁

This is a bug. Will be submitting a PR for this soon.

Thanks for reporting!

github-actions[bot] commented 4 weeks ago

:tada: This issue has been resolved in version 1.59.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: