Commit ccb3465
fix(next/client): add prerender opt-out to PrefetchCrossZoneLinks
Adds a `prerender?: boolean` prop (default `true`) to
`<PrefetchCrossZoneLinks />`. When `false`, the component emits only
the `prefetch:` rules and omits the `prerender:` block from the
`<script type="speculationrules">` JSON. Cross-zone prefetch is
unchanged.
Escape hatch for consumers seeing Chromium prerender-activation
crashes on cross-deployment same-origin navigations (Chrome 147+).
Default behavior unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent af86bf9 commit ccb3465
2 files changed
Lines changed: 30 additions & 6 deletions
File tree
- .changeset
- packages/microfrontends/src/next/client/prefetch
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
| 83 | + | |
71 | 84 | | |
72 | 85 | | |
73 | 86 | | |
| |||
172 | 185 | | |
173 | 186 | | |
174 | 187 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
181 | 198 | | |
182 | 199 | | |
183 | 200 | | |
| |||
0 commit comments