tracker: wasm support in fastn.app
readiness
#2051
amitu
started this conversation in
Ideas & RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Status:
ftd.app-path(path="/asd/")
(@siddhantk232 is working on this atftd.app-path
function #2057)Future
ft_sdk::mount_relative("/asd/")
Currently we have to add an entry in dynamic-urls to mount a wasm file, eg:
We can auto mount any URL, so if a file
sample.wasm
is present in a fastn package, we will implicitly assumeIs added.
We will still allow wasm+proxy to take care of scenario that you want to mount a wasm on a path that is not derived from its file name.
Priority to
ftd
filesIf we have a file
api.wasm
, and a fileapi/foo.ftd
, any request to/api/foo/
will be handled byapi/foo.ftd
, and any other/api/*
will go to wasm.No wasm execution in downloads folder
If any wasm file is in /downloads/ folder tree, it will not be executed. Explicit
wasm+proxy:
binding will be required for them if that is needed.ftd.mount-relative(url="/asd/")
&ft_sdk::mount_relative("/asd/")
We will create a ftd built in function and a ft_sdk function to convert a relative url to full url, eg if app is mounted on /app/ the above will return
/app/asd/
.Beta Was this translation helpful? Give feedback.
All reactions