Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
acd59a8 to
b46d97e
Compare
b50c653 to
be24f9e
Compare
valentin0h
approved these changes
Feb 13, 2026
| }, | ||
| ) => { | ||
| const { locale, slug, profileId } = await params; | ||
| const proposalUrl = `${OPURLConfig('APP').ENV_URL}/${locale}/decisions/${slug}/proposal/${profileId}`; |
Collaborator
There was a problem hiding this comment.
nextjs is so brittle. I wonder if there's a better way than hardcoding a url
Collaborator
Author
There was a problem hiding this comment.
I usually have a util that handles the paths by key getpath('proposals', {...optionsAndSlugs }); and then also allow that to be a prop on a <Link />. Actually realizing I can remove the locale entirely. We can fix it up in a follow-up.
apps/app/src/app/[locale]/(no-header)/decisions/[slug]/proposal/[profileId]/invite/route.ts
Show resolved
Hide resolved
apps/app/src/app/[locale]/(no-header)/decisions/[slug]/proposal/[profileId]/invite/route.ts
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a landing screen for invite links to accept an invitation. The link autoaccepts if the invite is valid and redirects to the proposal page.
We use a common /invite link so that users can communicate a single invite link (a la Google) and we lookup a user's invite in the DB.