Skip to content

[TRI-5377] bug: [v4] Middleware/lifecycle hooks defined in the init.ts file aren't picked up for deployed tasks #2037

Closed
@matt-aitken

Description

@matt-aitken
  • Define middleware like tasks.onStartup inside an init.ts file, which sits at the root of my trigger folder.
  • In the development environment, everything works fine, I see logs like onStartup() and "Initializing Sentry", so I know the middleware is running.
  • But in staging, none of those logs appear. It seems like the middleware isn't running at all.

Is there something different about how staging is handling the init file or middleware registration.

TRI-5377

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