Skip to content

[pull] main from tldraw:main#471

Merged
pull[bot] merged 2 commits intocode:mainfrom
tldraw:main
Mar 30, 2026
Merged

[pull] main from tldraw:main#471
pull[bot] merged 2 commits intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Mar 30, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

steveruizok and others added 2 commits March 30, 2026 14:55
In order to fix production timeouts on reference and other docs pages,
this PR switches from on-demand SSR to static generation at build time.

The docs site was using `dynamicParams = true` with no
`generateStaticParams`, meaning every page was rendered server-side on
each request by querying a SQLite database. This caused timeouts in
production, particularly on reference pages. This PR adds
`generateStaticParams()` to pre-render all pages at build time and sets
`dynamicParams = false` so unknown paths return 404 instead of
attempting runtime SSR.

### Change type

- [x] `bugfix`

### Test plan

1. Run `yarn build-docs` and verify all pages are statically generated
2. Visit reference pages and confirm they load without timeouts

- [ ] Unit tests
- [ ] End to end tests

### Release notes

- Fix docs site timeouts by statically generating all pages at build
time.

### Code changes

| Section       | LOC change |
| ------------- | ---------- |
| Documentation | +7 / -1    |
#8345)

This fixes pasted text positioning by measuring the same rich-text HTML
that the final text shape renders. Previously, we positioned pasted text
using a different pre-measurement format, which could make it land
slightly off-center.

Closes #8343

### Change type

- [x] `bugfix`

### Test plan

1. Copy text from a rich text editor
2. Paste onto the canvas with Cmd+V
3. Copy the same text in plain text
4. Paste onto the canvas with Cmd+V
5. The text should be in the same place, and centred on the page

Note: unit tests won't catch text measurement bugs.

- [x] End to end tests

### Release notes

- Fixed slight positioning drift when pasting text onto the canvas.

### Code changes

| Section    | LOC change |
| ---------- | ---------- |
| Core code  | +3 / -5    |

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators Mar 30, 2026
@pull pull Bot added the ⤵️ pull label Mar 30, 2026
@pull pull Bot had a problem deploying to deploy-production March 30, 2026 15:13 Failure
@pull pull Bot had a problem deploying to vsce publish March 30, 2026 15:13 Failure
@pull pull Bot had a problem deploying to deploy-staging March 30, 2026 15:13 Error
@pull pull Bot had a problem deploying to deploy-staging March 30, 2026 15:13 Failure
@pull pull Bot merged commit c3622b0 into code:main Mar 30, 2026
7 of 20 checks passed
@pull pull Bot had a problem deploying to deploy-staging March 31, 2026 00:35 Failure
@pull pull Bot temporarily deployed to e2e-dotcom March 31, 2026 02:36 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants