Skip to content

WASM fastn.url-mappings don't work in a mounted app #2098

@siddhantk232

Description

@siddhantk232

A system package that contains a .wasm module can declare a fastn.url-mappings entry in its FASTN.ftd:

-- import: fastn

-- fastn.package: lets-auth.fifthtry.site
system: lets-auth
system-is-confidential: false

-- fastn.url-mappings:

/backend/* -> wasm+proxy://email_auth_provider.wasm/*

Running fastn serve inside this package works and fastn is able to route requests to the wasm module when a request comes for /backend/*. However, this does not work when this app is mounted in another fastn package.

-- import: fastn

-- fastn.package: lets-auth-template.fifthtry.site

-- fastn.dependency: lets-auth.fifthtry.site

-- fastn.app: Lets Auth
mount-point: /-/auth/
package: lets-auth.fifthtry.site

Visiting /-/auth/backend/* does not attempt to serve request from the handlers defined inside the wasm module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions