Commit 1d99b68
authored
feature(docs): we aint rewriting to framer anymore (tldraw#8665)
Follow up to tldraw/tldraw-internal#264 and
dotdev release.
This PR will stay in WIP until we're ready to pull the plug on the
framer dotdev site.
It removes all unecessary redirections from docs to framer as now
tldraw.dev will point at the new dotdev project and the dotdev project
will redirect to docs
## Summary
Remove the Framer proxy behavior from the docs app so it can run as a
standalone docs deployment behind dotdev.
- Drops the marketing-path rewrites that proxied to the Framer site.
- Adds `assetPrefix` (via `ASSET_PREFIX`) so when docs pages are served
through a silent rewrite from `tldraw.dev`, their `/_next/*` assets load
from the docs origin (avoiding collisions with dotdev’s own `/_next/*`).
- Updates docs sitemap generation to be docs-only (no Framer URLs); this
sitemap is consumed by dotdev to build the single canonical
`tldraw.dev/sitemap.xml`.
## Ops notes
- Keep a stable hostname on the docs Vercel project (this becomes
`DOCS_ORIGIN_URL` on dotdev).
- Set `ASSET_PREFIX=https://<docs-origin-host>` on the docs Vercel
project (Prod + Preview).
## Test plan
- Visit `https://<docs-origin-host>/quick-start` and verify it loads and
navigates (JS/CSS assets come from the same origin).
- Verify `https://<docs-origin-host>/sitemap.xml` returns docs URLs
only.1 parent 524dad7 commit 1d99b68
4 files changed
Lines changed: 34 additions & 151 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 18 | + | |
31 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
| |||
212 | 208 | | |
213 | 209 | | |
214 | 210 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 211 | + | |
| 212 | + | |
310 | 213 | | |
311 | | - | |
312 | | - | |
313 | 214 | | |
314 | 215 | | |
315 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 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 | + | |
19 | 44 | | |
20 | 45 | | |
21 | 46 | | |
| |||
109 | 134 | | |
110 | 135 | | |
111 | 136 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 137 | | |
116 | 138 | | |
117 | 139 | | |
| |||
198 | 220 | | |
199 | 221 | | |
200 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
201 | 227 | | |
202 | 228 | | |
203 | 229 | | |
| |||
222 | 248 | | |
223 | 249 | | |
224 | 250 | | |
225 | | - | |
226 | | - | |
227 | 251 | | |
228 | 252 | | |
229 | 253 | | |
| |||
This file was deleted.
0 commit comments