Skip to content

Allow Runtime Config Setup #11

@mikearnaldi

Description

@mikearnaldi

Is your feature request related to a problem? Please describe.
In a serverless context we lose the ability to use any form of runtime configuration, the next api is locked down on purpose.

Describe the solution you'd like
We can address the problem by making runtime configs a middleware implementation that hooks into the rewrite by adding a runtime keyword (in addition to current query, params, original) that carries a config.

Describe alternatives you've considered
Not really many options...

Additional context
Should expose a nice api to define runtime configs and retrieve them from components.
We may also add configs at the route level not only at the global level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions