Set the correct Sentry tag when deploying auth-release

...in the photos-web CF pages project.
This commit is contained in:
Manav Rathi 2024-02-09 17:54:26 +05:30
parent e59e7436eb
commit 9acc0756c9

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