Commit 42c79f5
committed
Fix playground CORS by deploying to gh-pages branch
Problem: GitHub Releases don't serve files with CORS headers, blocking
browser fetch() requests. CORS proxies are unreliable for large files.
Solution: Deploy playground to gh-pages branch with WASM files included.
- Main branch stays clean (no 63MB WASM files)
- Workflow downloads WASM from latest release
- Pushes to separate gh-pages branch (orphan, separate history)
- GitHub Pages serves with proper CORS headers
- Same-origin = no CORS issues
Changes:
- Updated deploy workflow to download WASM and push to gh-pages
- Simplified index.html to use local files (served via Pages)
- Added clangd files to .gitignore
- Added ?prod=1 URL param for local testing1 parent f8fcd30 commit 42c79f5
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments