name = "freshyo-backend" main = "worker.ts" compatibility_date = "2024-12-01" compatibility_flags = ["nodejs_compat"] routes = [ { pattern = "api.freshyo.in/*", zone_name = "freshyo.in" } ] [[d1_databases]] binding = "DB" database_name = "freshyo-dev" database_id = "3cad440f-dc14-4baa-ab05-04eb08e206de" [durable_objects] bindings = [ { name = "CACHE_CREATOR", class_name = "CacheCreator" }, ] [[migrations]] tag = "cache-creator-v1" new_classes = ["CacheCreator"] migrations_dir = "../../packages/db_helper_sqlite/drizzle/" [[queues.producers]] binding = "NOTIF_QUEUE" queue = "notif-queue-dev" [[queues.producers]] binding = "ORDER_PLACED_QUEUE" queue = "order-placed-queue-dev" [[queues.producers]] binding = "ORDER_CANCELLED_QUEUE" queue = "order-cancelled-queue-dev" [[queues.consumers]] queue = "notif-queue-dev" [[queues.consumers]] queue = "order-placed-queue-dev" [[queues.consumers]] queue = "order-cancelled-queue-dev" [[r2_buckets]] binding = "MY_BUCKET" bucket_name = "meatfarmer-dev" [observability] enabled = false head_sampling_rate = 1 [observability.logs] enabled = true head_sampling_rate = 1 persist = true invocation_logs = true [observability.traces] enabled = false persist = true head_sampling_rate = 1 [vars] ENV_MODE = "PROD" NOTIF_QUEUE_NAME = "notif-queue-dev" ORDER_PLACED_QUEUE_NAME = "order-placed-queue-dev" ORDER_CANCELLED_QUEUE_NAME = "order-cancelled-queue-dev" DATABASE_URL = "postgresql://postgres:meatfarmer_master_password@57.128.212.174:7447/meatfarmer" PHONE_PE_BASE_URL = "https://api-preprod.phonepe.com/" PHONE_PE_CLIENT_ID = "TEST-M23F2IGP34ZAR_25090" PHONE_PE_CLIENT_VERSION = "1" PHONE_PE_CLIENT_SECRET = "MTU1MmIzOTgtM2Q0Mi00N2M5LTkyMWUtNzBiMjdmYzVmZWUy" PHONE_PE_MERCHANT_ID = "M23F2IGP34ZAR" S3_REGION = "apac" S3_ACCESS_KEY_ID = "8fab47503efb9547b50e4fb317e35cc7" S3_SECRET_ACCESS_KEY = "47c2eb5636843cf568dda7ad0959a3e42071303f26dbdff94bd45a3c33dcd950" S3_URL = "https://da9b1aa7c1951c23e2c0c3246ba68a58.r2.cloudflarestorage.com" S3_BUCKET_NAME = "meatfarmer-dev" EXPO_ACCESS_TOKEN = "Asvpy8cByRh6T4ksnWScO6PLcio2n35-BwES5zK-" JWT_SECRET = "my_meatfarmer_jwt_secret_key" ASSETS_DOMAIN = "https://assets2.freshyo.in/" API_CACHE_KEY = "api-cache-dev" CLOUDFLARE_API_TOKEN = "N7jAg5X-RUj_fVfMW6zbfJ8qIYc81TSIKKlbZ6oh" CLOUDFLARE_ZONE_ID = "edefbf750bfc3ff26ccd11e8e28dc8d7" REDIS_URL = "redis://default:redis_shafi_password@57.128.212.174:6379" APP_URL = "https://ui.freshyo.in" RAZORPAY_KEY = "rzp_test_RdCBBUJ56NLaJK" RAZORPAY_SECRET = "namEwKBE1ypWxH0QDVg6fWOe" OTP_SENDER_AUTH_TOKEN = "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJDLTM5OENEMkJDRTM0MjQ4OCIsImlhdCI6MTc0Nzg0MTEwMywiZXhwIjoxOTA1NTIxMTAzfQ.IV64ofVKjcwveIanxu_P2XlACtPeA9sJQ74uM53osDeyUXsFv0rwkCl6NNBIX93s_wnh4MKITLbcF_ClwmFQ0A" MIN_ORDER_VALUE = "300" DELIVERY_CHARGE = "20" TELEGRAM_BOT_TOKEN = "8410461852:AAGXQCwRPFbndqwTgLJh8kYxST4Z0vgh72U" TELEGRAM_CHAT_IDS = "5147760058" [triggers] #crons = ["* * * * *"] crons = [ "30 18 * * *", # 12:00 AM IST "35 18 * * *" # 12:05 AM IST ] [build] upload_source_maps = true