()
| 36 | } |
| 37 | |
| 38 | publishProject() { |
| 39 | const projectName = this.v.get('CLOUDFLARE_PROJECT_NAME'); |
| 40 | const productionBranch = this.v.get('PRODUCTION_BRANCH', 'main'); |
| 41 | |
| 42 | // Cloudflare Pages direct upload uses branch to decide deployment environment. |
| 43 | // If we want production, then use production_branch. Otherwise, just something else |
| 44 | const branch = this.currentEnv === 'production' ? productionBranch : `${productionBranch}-preview`; |
| 45 | const wranglerCmd = `wrangler pages deploy public --project-name ${projectName} --branch ${branch}`; |
| 46 | console.log(wranglerCmd); |
| 47 | return this._getCmd(wranglerCmd); |
| 48 | } |
| 49 | |
| 50 | _non_dev_db() { |
| 51 | return this.v.get('D1_DATABASE_NAME') || |
no test coverage detected