Skip to content

Cloudfare transition - #14

Merged
IvanKiral merged 6 commits into
mainfrom
cloudfare_transition
Jun 21, 2026
Merged

Cloudfare transition#14
IvanKiral merged 6 commits into
mainfrom
cloudfare_transition

Conversation

@IvanKiral

Copy link
Copy Markdown
Owner

No description provided.

- drive base path from a single VITE_BASE_URL env (defaults to root '/')
- derive router base, PWA manifest paths and prerender routes from it
- make the nitro preset overridable via SERVER_PRESET
- add wrangler.toml so the static output deploys to cloudflare pages
- migrate deploy to a cloudflare worker with static assets (cloudflare_module preset)
- add MEDIA r2 binding and a range-aware /media/[slug] streaming route
- detect available videos at build and point recipe video_url at /media/<slug>
- adapt the player to each video's own aspect ratio (vertical reel or landscape)
- serve from the access-protected custom domain; disable workers.dev
- ignore local data/ and videos/ (sourced from the data branch / R2)
@IvanKiral
IvanKiral merged commit 446ec3b into main Jun 21, 2026
@IvanKiral
IvanKiral deleted the cloudfare_transition branch June 21, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant