Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

feat: set SENTRY_RELEASE env #11

@itsnotrisky

Description

@itsnotrisky

I'm not sure if this is just my setup, but I found that new issues didn't get linked to any release created - it said Release: n/a in the sidebar.

Checking out the doc at Sentry.init({ release }) option I was wondering if this could be the reason - Sentry client didn't know where to link the issue. I scanned through the index.js file and didn't see anything is set for SENTRY_RELEASE.

I'm not aware if you can set env variable in Netlify through some API call, only thing I found is to set it through netlify.toml which means we need to update this file early before the build starts to insert some thing like SENTRY_RELEASE=process.env.COMMIT_REF CMIIW.

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