Commit 0b32a88
fix(website): use local library build and fix CSP issues
Critical fixes to resolve library loading failures:
**Issue**: CornerKit library was not loading from CDN (404 errors)
**Root Cause**: Library not yet published to npm, so jsdelivr/unpkg CDN URLs fail
**Changes**:
1. Copy local build from packages/core/dist/cornerkit.js to website/
2. Update index.html to load from local build instead of CDN
3. Fix CSP to allow placeholder images (via.placeholder.com)
4. Remove frame-ancestors from meta CSP (should be HTTP header only)
**Result**: Library now loads successfully, smoothing parameter works correctly
Tested with local server - all functionality working:
- Hero animations
- Playground sliders (radius & smoothing)
- Gallery examples (26 components)
- Comparison section
- Keyboard shortcuts (R, I)
- Code generation and clipboard copy
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ca73717 commit 0b32a88
2 files changed
+5
-4
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
518 | | - | |
| 516 | + | |
| 517 | + | |
519 | 518 | | |
520 | 519 | | |
521 | 520 | | |
0 commit comments