Repository navigation
Commit 5d15dc3
Move Together into a standalone app (apps/together) (#523)
* Scaffold standalone Together app and move Together code out of web
Create apps/together (Next.js 16) with its own root layout, locale proxy,
dictionaries, language context, API/TMDB clients and React Query/sonner
providers. Move the Together routes, components, services and tests from
apps/web with git mv, drop the /together route prefix and make invite
links locale-neutral. Remove the compare/design-preview explorations and
the Plotwist session/preferences prefill (default region now follows the
page locale).
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
* Add Together conversion analytics and Plotwist sign-up CTA
Add a typed track() helper that forwards to gtag only when it is loaded,
inject the gtag script when NEXT_PUBLIC_MEASUREMENT_ID is set, and track
room_created, invite_shared, room_joined, voting_started, swipe,
match_shown and plotwist_cta_clicked at the existing user actions.
Replace the sign-in prompt with a dismissible Plotwist CTA linking to
Plotwist sign-up with together UTM tags, and rewrite its copy in all
seven locales so it no longer implies an import of saved services.
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
* Remove Together from web and redirect legacy URLs to the new app
Permanently redirect /together, /together/*, /<locale>/together and
/<locale>/together/* to NEXT_PUBLIC_TOGETHER_URL (default
https://together.plotwist.app), keeping the locale when present and the
query string. Drop the Together nav item, sitemap entry, layout chrome
exception, dictionary sections and Together dictionary contract tests.
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
* Allow the standalone Together origin in backend CORS and client guard
Add an optional TOGETHER_CLIENT_URL (URL, trailing slash trimmed) to the
app config and accept it in production CORS origins and the production
Origin/Referer client guard, which would otherwise reject requests from
the new domain with 403.
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
* Wire apps/together into the monorepo and document it
Add together#build to turbo (NEXT_PUBLIC_* env, .next outputs) and pass
NEXT_PUBLIC_TOGETHER_URL to web#build, exclude the new app's build output
from Biome, stop tracking its tsbuildinfo, and add a README, .env.example
and a CLAUDE.md entry.
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
* Track the Next-generated next-env.d.ts for together
Match apps/web, which tracks the file exactly as next dev writes it.
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
* Restore web tsbuildinfo to main
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
* Pass Together origin to the production backend
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
* Pin Node 24.x for Vercel builds of web and together
Co-authored-by: Luiz Henrique <7henrique18@gmail.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent 53f3115 commit 5d15dc3
110 files changed
Lines changed: 1950 additions & 1310 deletions
File tree
- apps
- backend
- deploy
- src
- infra/http
- routes
- together
- src
- app
- [lang]
- [code]
- matches
- swipe
- vote
- components
- context
- dictionaries
- lib
- services
- types
- test
- web
- public/dictionaries
- src
- app/[lang]
- sitemap.xml
- together
- [code]
- _components
- compare
- design-preview
- components
- header
- utils/dictionaries
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | | - | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | | - | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments