fix(tf): api worker should have BOT_TOKEN binded

This commit is contained in:
41666 2020-12-18 00:57:01 -05:00
parent b5585f5ee9
commit 6580abba1d

View file

@ -39,6 +39,11 @@ resource "cloudflare_worker_script" "backend" {
text = var.bot_client_secret text = var.bot_client_secret
} }
secret_text_binding {
name = "BOT_TOKEN"
text = var.bot_token
}
plain_text_binding { plain_text_binding {
name = "UI_PUBLIC_URI" name = "UI_PUBLIC_URI"
text = var.ui_public_uri text = var.ui_public_uri