From 287d5d9789f7455d27c4b80daf834b9d03a7d8b5 Mon Sep 17 00:00:00 2001 From: hughcrt Date: Fri, 29 Mar 2024 19:23:38 -0300 Subject: [PATCH] ok --- .github/workflows/test-build-deploy.yml | 1 + packages/frontend/pages/team.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build-deploy.yml b/.github/workflows/test-build-deploy.yml index 206757b8..97fbbc3e 100644 --- a/.github/workflows/test-build-deploy.yml +++ b/.github/workflows/test-build-deploy.yml @@ -126,6 +126,7 @@ jobs: deploy: needs: build-and-push runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' steps: - name: Deploy to Production uses: appleboy/ssh-action@master diff --git a/packages/frontend/pages/team.tsx b/packages/frontend/pages/team.tsx index 4e0de332..5e056a86 100644 --- a/packages/frontend/pages/team.tsx +++ b/packages/frontend/pages/team.tsx @@ -290,7 +290,7 @@ function UserMenu({ user, isInvitation }) { { navigator.clipboard.writeText( - `${window.APP_URL}/join?token=${user.singleUseToken}`, + `${process.env.NEXT_PUBLIC_APP_URL || window.location.origin}/join?token=${user.singleUseToken}`, ) notifications.show({ icon: , @@ -471,7 +471,7 @@ function InviteMemberCard() { }) return } else { - const link = `${window.APP_URL}/join?token=${newUser.singleUseToken}` + const link = `${process.env.NEXT_PUBLIC_APP_URL || window.location.origin}/join?token=${newUser.singleUseToken}` setIsLoading(false) setInviteLink(link) setOpened(true)