1
0

Upload script
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
Aiden
2026-06-11 08:24:36 +10:00
parent fbdb733f13
commit 776c7c0629
5 changed files with 289 additions and 1 deletions

View File

@@ -93,3 +93,13 @@ npm run build
```
Edit the TypeScript source files rather than generated JavaScript. A typical CI/CD publish step should run `npm ci`, `npm run build`, then publish `vr180player/` with its generated `.js` files and CSS.
## Upload to Cloudflare R2
Copy `.env.r2.example` to `.env.r2`, then fill in your R2 account, bucket, and S3-compatible access key credentials.
```sh
npm run upload:r2:dry-run
npm run deploy:r2
```
By default this uploads the built `vr180player/` folder under the `vr180player/` object prefix. Change `R2_SOURCE_DIR` or `R2_PREFIX` in `.env.r2` if you want a different source folder or CDN path.