Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remote string source #203

Merged
merged 6 commits into from
Mar 15, 2024
Merged

fix: remote string source #203

merged 6 commits into from
Mar 15, 2024

Conversation

luwes
Copy link
Collaborator

@luwes luwes commented Mar 14, 2024

fix #201

example: https://next-video-demo-git-fork-luwes-string-source-example-mux.vercel.app/string-source

this fixes access to the video config and .json files in am API route.
see https://vercel.com/guides/how-can-i-use-files-in-serverless-functions

this makes remote sources work on Vercel with the caveat that the video json files have to be committed to git!

creating .json files with serverless functions is not the right way to do it.
we will need #143 databases for this

@luwes luwes self-assigned this Mar 14, 2024
Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-video-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 14, 2024 11:39pm

@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 65.00000% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 58.96%. Comparing base (0fb96bb) to head (ec0b7a7).
Report is 2 commits behind head on main.

Files Patch % Lines
src/config.ts 41.66% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #203      +/-   ##
==========================================
+ Coverage   58.77%   58.96%   +0.18%     
==========================================
  Files          30       30              
  Lines        2358     2371      +13     
  Branches      130      131       +1     
==========================================
+ Hits         1386     1398      +12     
- Misses        968      969       +1     
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@luwes luwes force-pushed the string-source-example branch from 81260ad to 2f12edf Compare March 14, 2024 19:02
@luwes luwes force-pushed the string-source-example branch from 00b3eab to 710c050 Compare March 14, 2024 19:59
@luwes luwes changed the title example: add string source example fix: remote string source Mar 14, 2024
@luwes luwes requested review from mmcc and heff March 14, 2024 20:13
@luwes luwes force-pushed the string-source-example branch from 710c050 to ec0b7a7 Compare March 14, 2024 23:37
@luwes luwes merged commit 4d564ce into muxinc:main Mar 15, 2024
6 checks passed
@luwes luwes deleted the string-source-example branch March 15, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants