mono/packages/ui/docs/DEPLOY_INSTRUCTIONS.md
2026-02-08 15:09:32 +01:00

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)

  1. Go to: https://supabase.com/dashboard/project/ytoadlpbdguriiccjnip/functions
  2. Find mux-proxy in the functions list
  3. Click the menu (three dots) next to it
  4. Select "Deploy" or "Deploy new version"
  5. 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

  1. Go to http://localhost:5173/playground/video-player
  2. Sign in
  3. Try uploading a video
  4. Should work now! 🎉

⚠️ Important

The credentials are currently HARDCODED in the function. This is for testing only!

Before deploying to production:

  1. Set MUX_TOKEN_ID and MUX_TOKEN_SECRET as Supabase secrets
  2. Uncomment the env loading lines in supabase/functions/mux-proxy/index.ts
  3. Remove the hardcoded values
  4. Redeploy

See docs/SETUP_MUX_SECRETS.md for proper setup instructions.