Commit 1e42a73
committed
fix(favicon): revert marketing-ISR-breaking force-dynamic, fix manifest env-tint
Addresses the fourth round of review findings on PR #5588:
- Cursor (High, confirmed via testing, not just code review): the
previous commit's `export const dynamic = 'force-dynamic'` on
app/layout.tsx would have forced the entire marketing site
((landing) route group - blog/library posts, changelog, solutions
pages, all with their own `revalidate` exports) into per-request
rendering, breaking their Lighthouse/LCP budget. My earlier "verified
via build, no regression" claim was itself wrong: my local build
masked this because NEXT_PUBLIC_APP_URL=localhost makes isHosted()
false, which makes app/layout.tsx render next-runtime-env's
RuntimePublicEnvScript - which unconditionally calls
unstable_noStore() - already forcing marketing pages dynamic before
my change even ran, for a completely unrelated pre-existing reason.
Rebuilt with NEXT_PUBLIC_APP_URL=https://www.sim.ai (matching real
hosted deployments, isHosted() true, the safe script path) to get an
unmasked answer: confirmed force-dynamic was the actual regression
(marketing pages went from ● to ƒ), and confirmed the revert restores
them to ○ with their normal 1h revalidate window. Documented the
accepted tradeoff instead: marketing-page favicon metadata may lag
by up to one revalidate window after a deploy (bounded, self-healing
at the next ISR regeneration, which runs in the live server process
after bootstrap.ts has loaded secrets) - the actual workspace app
(this feature's real audience) is already fully dynamic today
(session/auth), so it needs no explicit marker.
- Cursor (Medium): app/manifest.ts's non-whitelabeled branch still
hardcoded production favicon paths instead of ICON_SETS[getDeploymentEnv()],
so PWA install/home-screen icons stayed production-tinted while the
HTML favicon was correctly env-tinted. Now uses the same per-tier set.1 parent 37a3b05 commit 1e42a73
2 files changed
Lines changed: 27 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 27 | | |
44 | 28 | | |
45 | 29 | | |
46 | 30 | | |
47 | 31 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
| |||
0 commit comments