Skip to content

Commit

Permalink
[lib] Update the dev invite link URL
Browse files Browse the repository at this point in the history
Summary: Update the dev invite link URL so that it works for the default configuration. Making it correct in all the cases is hard because we would need the `webapp_url.json` config that isn't available in `lib`.

Test Plan: Open the dev app and check if the link is displayed correctly and works.

Reviewers: kamil, inka

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13589
  • Loading branch information
palys-swm committed Oct 3, 2024
1 parent 9dd69d4 commit 940a7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/facts/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { isDev } from '../utils/dev-utils.js';
/* Invite Links */
function inviteLinkURL(secret: string): string {
if (isDev) {
return `http://localhost:3000/invite/${secret}`;
return `http://localhost:3000/webapp/invite/${secret}`;
}
return `https://comm.app/invite/${secret}`;
}
Expand Down

0 comments on commit 940a7c6

Please sign in to comment.