Azure Functions
- Adapter:
server/adapters/azure.ts - Entry stub:
api-azure/admin.ts - Free tier: 1M requests / month on the consumption plan
Setup
- Node programming model v4
- Register an anonymous HTTP function that calls
adminHttp - Set app settings from
secrets.local.example - Bind a custom domain for cookie auth
ts
import { app } from '@azure/functions'
import { adminHttp } from '../api-azure/admin'
app.http('admin', {
methods: ['GET', 'POST', 'OPTIONS'],
authLevel: 'anonymous',
handler: adminHttp,
})