Skip to content

Commit b6b70f4

Browse files
meaningfoolclaude
andcommitted
Add prebuild script to copy videos from submodule
Copies mp4 files from src/content/writing/images/ to public/images/ so that video embeds in articles work correctly. πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1af4a2e commit b6b70f4

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

β€Ž.gitignoreβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# build output
22
dist/
33

4+
# copied assets from submodule (generated by prebuild)
5+
public/images/*.mp4
6+
47
# generated types
58
.astro/
69

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
},
88
"scripts": {
99
"dev": "astro dev",
10+
"prebuild": "mkdir -p public/images && cp src/content/writing/images/*.mp4 public/images/ 2>/dev/null || true",
1011
"build": "astro build",
1112
"preview": "astro preview",
1213
"astro": "astro"

0 commit comments

Comments
Β (0)