()
| 45 | message: "Domain name where the app will be hosted:", |
| 46 | when: (answers) => answers.setup, |
| 47 | default() { |
| 48 | const { parsed } = dotenv.config({ path: "env/.prod.env" }); |
| 49 | return new URL(parsed.APP_ORIGIN).hostname; |
| 50 | }, |
| 51 | validate(domain) { |
| 52 | if (!domain.match(/^\w[\w-.]{0,61}\w\.[\w]{2,}$/)) { |
| 53 | return "Requires a valid domain name."; |
nothing calls this directly
no outgoing calls
no test coverage detected