Better Static File Handling
blog.duvallj.pw·69w
Preview
Report Post

For a while now, I’ve had a photography page on my blog. When I made it, I wasn’t thinking too hard and just followed along with the Astro Image guide which said “put ur images somewhere in src/ and import them”. One thing led to another, and I ended up with ~800MiB of data in my git repository. :P

To be clear, git can handle this much data w/o much stress. GitHub gets a little bit sad on the upload, but hey, at least that only happens once, right? But consider: the GitHub Action to deploy my site needs to download the repo in order to run. So every run, it was downloading ~800MiB, only to restore what it needed from a cache anyways. It got so bad, this repo download step was half the build time when caches were warm.

Needless to…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help