feat: better image handling (auto resize & max size constraints) (#26401)
This commit is contained in:
parent
5217e6c1af
commit
85ce6a5f95
18 changed files with 417 additions and 34 deletions
|
|
@ -9,6 +9,7 @@
|
|||
### General Principles
|
||||
|
||||
- Keep things in one function unless composable or reusable
|
||||
- Do not extract single-use helpers preemptively. Inline the logic at the call site unless the helper is reused, hides a genuinely complex boundary, or has a clear independent name that improves the caller.
|
||||
- Avoid `try`/`catch` where possible
|
||||
- Avoid using the `any` type
|
||||
- Use Bun APIs when possible, like `Bun.file()`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue