These serverless functions broadcast quiz events via AnyCable. Copy the folder for your platform into your project.
| Variable | Description |
|---|---|
ANYCABLE_BROADCAST_URL |
AnyCable HTTP broadcast endpoint (from AnyCable Plus dashboard) |
Never put this in your code. Set it in your platform's dashboard.
- Copy
functions/netlify/contents tonetlify/functions/in your project - Set env vars in Netlify dashboard > Site settings > Environment variables
- Deploy — endpoints are
/.netlify/functions/quiz-answerand/.netlify/functions/quiz-sync(the defaults)
- Copy
functions/vercel/contents toapi/in your project - Set env vars in Vercel dashboard > Settings > Environment Variables
- Deploy — endpoints are
/api/quiz-answerand/api/quiz-sync - Configure the plugin to use Vercel endpoints:
slideQuiz: {
endpoints: {
answer: '/api/quiz-answer',
sync: '/api/quiz-sync',
}
}