main = "src/index.js"
compatibility_date = "2025-05-05"

[env.prod]
name = "hcaptcha-worker-prod"
workers_dev = false
routes = [
    { pattern = "hcaptcha-endpoint-prod.suno.com", custom_domain = true },
    { pattern = "hcaptcha-imgs-prod.suno.com", custom_domain = true },
    { pattern = "hcaptcha-reportapi-prod.suno.com", custom_domain = true },
    { pattern = "hcaptcha-assets-prod.suno.com", custom_domain = true },
]

[env.prod.vars]
ENTERPRISE_SITEKEY = "d65453de-3f1a-4aac-9366-a0f06e52b2ce"
ENV_NAME = "prod"

[env.staging]
name = "hcaptcha-worker-staging"
routes = [
    { pattern = "hcaptcha-endpoint-staging.suno.com", custom_domain = true },
    { pattern = "hcaptcha-imgs-staging.suno.com", custom_domain = true },
    { pattern = "hcaptcha-reportapi-staging.suno.com", custom_domain = true },
    { pattern = "hcaptcha-assets-staging.suno.com", custom_domain = true },
]

[env.staging.vars]
ENTERPRISE_SITEKEY = "9160e252-0f1c-4f7a-aa7a-39dcb34efa2e"
ENV_NAME = "staging"
