forked from EXT/VR180-Web-Player
10
README.md
10
README.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user