app wasm & mount relative URLs #2053
Closed
amitu
started this conversation in
Ideas & RFCs
Replies: 1 comment
-
Closing this discussion as duplicate of #2051. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
If a app is mounted via
fastn.app
, the wasm files in that app are automatically mounted as well on the same path, e.g.,foo.wasm
in app mounted at/app/
will be available at/app/foo/
.We will also pass
/app/
asX-FASTN-APP-MOUNTPOINT
header when any requests to/app/foo/*
is passed tofoo.wasm
.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