Set the correct Sentry tag when deploying auth-release (#1609)

This commit is contained in:
Manav Rathi 2024-02-09 17:55:52 +05:30 committed by GitHub
commit 3b3804b655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,15 @@ rm -rf out
if test "$CF_PAGES_BRANCH" = "auth-release"
then
# By default, for preview deployments the NEXT_PUBLIC_APP_ENV is set to
# "test" in the CF environment variables. For production deployments of the
# auth app, reset this to "production".
#
# This is not needed for the default `yarn export:photos` case, because
# there the actual production deployment runs without NEXT_PUBLIC_APP_ENV
# being set to anything (and the other preview deployments have
# NEXT_PUBLIC_APP_ENV set to "test", as is correct).
export NEXT_PUBLIC_APP_ENV=production
yarn export:auth
cp -R apps/auth/out .
else