Datadog Sourcemap upload with version as VERCEL_GIT_PULL_REQUEST_ID
Unanswered
Northeast Congo Lion posted this in #help-forum
Northeast Congo LionOP
I have postbuild script which works for pull request and successfully builds for previews. The problem is I get error when I merge to production then the VERCEL_GIT_PULL_REQUEST_ID becomes null and says missing release version
"postbuild": "VERCEL_GIT_PULL_REQUEST_ID=$VERCEL_GIT_PULL_REQUEST_ID datadog-ci sourcemaps upload ./.next/static/chunks --service=website --release-version=$VERCEL_GIT_PULL_REQUEST_ID --minified-path-prefix=/_next/static/",