Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Mar 29, 2024
1 parent 691ab0a commit 5890764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/pages/team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function UserMenu({ user, isInvitation }) {
<Menu.Item
onClick={() => {
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: <IconCheck size={18} />,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5890764

Please sign in to comment.