Skip to content

How to detect in Deno if it is currently a prod deployment? #761

Open
@Sleepful

Description

What problem are you trying to solve?

I need to configure logging for my app and I need to differentiate whether a message originated from a prod environment or from one of the preview environments.

Describe the solution you'd like

Something akin to checking an ENV var that updates as the status of the Deno isolate/instance changes

Describe alternatives you've considered

Tracing the URL of requests that generate messages as a proxy for this info

Documentation, Adoption, Migration Strategy

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions