MCPcopy Create free account
hub / github.com/kriasoft/graphql-starter-kit / default

Function default

scripts/setup.js:47–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected