1.1 KiB
1.1 KiB
🚀 Deploy Mux Proxy Function
The credentials are now hardcoded in the function. You need to redeploy it:
Option 1: Via Supabase Dashboard (Easiest)
- Go to: https://supabase.com/dashboard/project/ytoadlpbdguriiccjnip/functions
- Find mux-proxy in the functions list
- Click the ⋮ menu (three dots) next to it
- Select "Deploy" or "Deploy new version"
- Upload the updated function files from
supabase/functions/mux-proxy/
Option 2: Via Supabase CLI
If you have the CLI installed:
supabase functions deploy mux-proxy
✅ After Deployment
- Go to http://localhost:5173/playground/video-player
- Sign in
- Try uploading a video
- Should work now! 🎉
⚠️ Important
The credentials are currently HARDCODED in the function. This is for testing only!
Before deploying to production:
- Set MUX_TOKEN_ID and MUX_TOKEN_SECRET as Supabase secrets
- Uncomment the env loading lines in
supabase/functions/mux-proxy/index.ts - Remove the hardcoded values
- Redeploy
See docs/SETUP_MUX_SECRETS.md for proper setup instructions.