Skip to content

Some paths skip global onBeforeHandler #55

@haihala

Description

@haihala

I have a global onBeforeHandler, added to the root Elysia instance as the first thing. To the best of my understanding, this means that that handler should run before the route handlers. Yet, for some reason it doesn't for some paths, namely the root index.html and chunk js files. I'm serving a static site built with the Svelte static adapter. There are paths that do go through the handler, such as ones that start with /_app/.

Right now I sidestepped the problem with custom static file serving.

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