(domain: string)
| 1 | import * as functions from 'firebase-functions'; |
| 2 | |
| 3 | const isValidDomain = (domain: string): boolean => { |
| 4 | // Only allow alphanumeric characters, dots, and hyphens |
| 5 | return /^[a-zA-Z0-9.-]+$/.test(domain); |
| 6 | }; |
| 7 | |
| 8 | export const dnsRedirecting = functions.https.onRequest( |
| 9 | { |