{"version":3,"sources":["jsdelivr-header.js","/npm/fastboot-aws@1.0.0-beta.2/server.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,MAAM,aAAoB,QAAQ,0BAC5B,WAAoB,QAAQ,wBAC5B,WAAoB,QAAQ,wBAC5B,kBAAoB,QAAQ,uBAE5B,UAAe,QAAQ,IAAI,mBAC3B,OAAe,QAAQ,IAAI,gBAC3B,WAAe,QAAQ,IAAI,oBAC3B,WAAe,QAAQ,IAAI,oBAC3B,aAAe,QAAQ,IAAI,sBAC3B,SAAe,QAAQ,IAAI,kBAC3B,SAAe,QAAQ,IAAI,kBAEjC,IAUI,MAVA,WAAa,IAAI,aAAa,CAChC,OAAQ,UACR,IAAK,SAGH,SAAW,IAAI,WAAW,CAC5B,OAAQ,UACR,IAAK,SAIH,YAAc,WAChB,MAAQ,IAAI,WAAW,CACrB,KAAM,WACN,KAAM,WACN,WAAY,eAGd,QAAQ,IAAI,gFAGd,IAAI,OAAS,IAAI,kBAAkB,CACjC,WAAY,WACZ,SAAU,SACV,MAAO,QAGT,OAAO","file":"/npm/fastboot-aws@1.0.0-beta.2/server.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/fastboot-aws@1.0.0-beta.2/server.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n\nconst S3Downloader      = require('fastboot-s3-downloader');\nconst S3Notifier        = require('fastboot-s3-notifier');\nconst RedisCache        = require('fastboot-redis-cache');\nconst FastBootAppServer = require('fastboot-app-server');\n\nconst S3_BUCKET    = process.env.FASTBOOT_S3_BUCKET;\nconst S3_KEY       = process.env.FASTBOOT_S3_KEY;\nconst REDIS_HOST   = process.env.FASTBOOT_REDIS_HOST;\nconst REDIS_PORT   = process.env.FASTBOOT_REDIS_PORT;\nconst REDIS_EXPIRY = process.env.FASTBOOT_REDIS_EXPIRY;\nconst USERNAME     = process.env.FASTBOOT_USERNAME;\nconst PASSWORD     = process.env.FASTBOOT_PASSWORD;\n\nlet downloader = new S3Downloader({\n  bucket: S3_BUCKET,\n  key: S3_KEY\n});\n\nlet notifier = new S3Notifier({\n  bucket: S3_BUCKET,\n  key: S3_KEY\n});\n\nlet cache;\nif (REDIS_HOST || REDIS_PORT) {\n  cache = new RedisCache({\n    host: REDIS_HOST,\n    port: REDIS_PORT,\n    expiration: REDIS_EXPIRY\n  });\n} else {\n  console.log('No FASTBOOT_REDIS_HOST or FASTBOOT_REDIS_PORT provided; caching is disabled.');\n}\n\nlet server = new FastBootAppServer({\n  downloader: downloader,\n  notifier: notifier,\n  cache: cache\n});\n\nserver.start();\n"]}