Add a script that builds the demo as a static site #2

Merged
LucianoNeryDev merged 1 commit from feat/demo-site into dev 2026-11-26 19:09:54 +00:00

npm run build:site copies the demo page, the library (without the encoder) and the film into site/, ready for any static host. It also writes a _headers file that caches the parts for a month and revalidates the manifests. A film in site/film/portrait/ and site/film/landscape/ gets one per orientation; otherwise it copies demo/film.

This is how the live demo at scrollfilm.lucianonery.dev is built, with an excerpt of the Residenza Vela film. Tested on the Galaxy A14: WebGL2, all 855 frames, no page errors.

`npm run build:site` copies the demo page, the library (without the encoder) and the film into `site/`, ready for any static host. It also writes a `_headers` file that caches the parts for a month and revalidates the manifests. A film in `site/film/portrait/` and `site/film/landscape/` gets one per orientation; otherwise it copies `demo/film`. This is how the live demo at scrollfilm.lucianonery.dev is built, with an excerpt of the Residenza Vela film. Tested on the Galaxy A14: WebGL2, all 855 frames, no page errors.
Add a script that builds the demo as a static site
All checks were successful
CI / test (pull_request) Successful in 28s
47b270574c
LucianoNeryDev deleted branch feat/demo-site 2026-11-26 19:09:55 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LucianoNeryDev/scrollfilm!2
No description provided.