Skip to content

Commit

Permalink
.dev: use Git LFS for our blog images (tldraw#4530)
Browse files Browse the repository at this point in the history
Convert the items in `/blog` to use Git LFS to avoid making our repo too
heavy.

I turned on the setting in Vercel to enable this as well.

<img width="952" alt="Screenshot 2024-09-16 at 11 27 26"
src="https://github.com/user-attachments/assets/bcae59d7-46ff-46dd-a053-06efa918f213">

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`
  • Loading branch information
mimecuvalo authored Sep 18, 2024
1 parent 1114977 commit dd5a14f
Show file tree
Hide file tree
Showing 249 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; }
git lfs pre-push "$@"
2 changes: 2 additions & 0 deletions apps/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ The auto-generated docs content is created using [tsdoc](https://tsdoc.org/) and

## Developing the docs

You'll need to install Git LFS to get our blog post images (which can be large). See instructions [here](https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage).

When developing the docs, any change to the `content` folder will cause the page to refresh. This is a little shitty but it mostly works.

## Contribution
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/public/images/blog/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.gif filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.heic filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
Loading

0 comments on commit dd5a14f

Please sign in to comment.