* @param {string} url
(url)
| 79 | * @param {string} url |
| 80 | */ |
| 81 | async deploy(url) { |
| 82 | const startTime = Date.now(); |
| 83 | logger.progress(`Deploying worker...`); |
| 84 | |
| 85 | await deployToWorkersDev({ |
| 86 | code: this.bundler.code, |
| 87 | accountEmail: this.accountEmail, |
| 88 | accountId: this.accountId, |
| 89 | apiKey: this.apiKey, |
| 90 | name: this.project, |
| 91 | site: this.site, |
| 92 | kv: this.kv |
| 93 | }); |
| 94 | |
| 95 | logger.success( |
| 96 | `Deployed worker to ${chalk.cyan.underline(url)}`, |
| 97 | Date.now() - startTime |
| 98 | ); |
| 99 | } |
| 100 | |
| 101 | dispose() { |
| 102 | this.bundler.dispose(); |
no test coverage detected