Commit 0910ebd
feat: cloudflare pages deploy config
* wrangler.toml — Pages project "nesy-solver", pages_build_output_dir=dist
* public/app.js — switch /api/strategy?class=X to /api/strategy/X path form
to match the V backend's /strategy/:class route
* .gitignore — ignore dist/ (Pages build output) + .wrangler/ + node_modules/
Deploy (after `wrangler login`):
mkdir -p dist && cp index.html dist/ && cp -r public dist/
cp deploy/_redirects dist/_redirects
wrangler pages deploy dist --project-name=nesy-solver
_redirects proxies /api/* to https://nesy-solver-api.fly.dev so the frontend
stays portable — backend URL can change without frontend changes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4088d6e commit 0910ebd
3 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments