Update environment typings and stream handling for dynamic HLS URL

- Add `CLOUDFLARE_STREAM_NIKIV_VIDEO_ID` to environment variables
- Refactor `$username.tsx` to initialize stream data with default HLS URL
- Implement dynamic HLS URL update based on API response for Nikiv stream
- Modify `/api/check-hls` route to use environment variable for video ID
- Ensure HLS URL updates trigger stream data refresh in client
- Update `wrangler.jsonc` to include `CLOUDFLARE_STREAM_NIKIV_VIDEO_ID` in env vars
This commit is contained in:
Nikita
2025-12-24 23:17:59 -08:00
parent 78a4be3104
commit ca8af44c72
4 changed files with 53 additions and 33 deletions

View File

@@ -29,7 +29,8 @@
* https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
*/
"vars": {
"APP_BASE_URL": "https://linsa.io"
"APP_BASE_URL": "https://linsa.io",
"CLOUDFLARE_STREAM_NIKIV_VIDEO_ID": "cd56ef73791c628c252cd290ee710275"
},
/**
* Note: Use secrets to store sensitive data.