Commit 6f6b55f
committed
web: fix CSP blocking fonts/video, replace YouTube embed with local MP4
CSP (next.config.mjs):
- style-src: add https://rsms.me (Inter font CSS loaded in layout.tsx)
- font-src: add https://rsms.me (Inter font files)
- media-src: add 'self' (local video playback)
- connect-src: add API domains for dashboard fetch calls
Hero video:
- Replace HeroVideoDialog YouTube iframe with native <video> element
playing /assets/demo-video.mp4 (autoplay, loop, muted, playsInline)
- Eliminates the frame-src CSP violation entirely — no iframe needed
- Removes unused HeroVideoDialog import
Blog author:
- /author.jpg didn't exist — temporarily use /logo-small.png as avatar
until the real headshot is provided1 parent 7b0b5a0 commit 6f6b55f
3 files changed
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| |||
0 commit comments