MCPcopy Index your code
hub / github.com/supermemoryai/cloudflare-saas-stack / createPagesProject

Function createPagesProject

scripts/setup.ts:186–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184}
185
186async function createPagesProject() {
187 const pagesProjectSpinner = spinner();
188 const defualtPagesName = path.basename(process.cwd());
189 pagesName = await prompt(
190 "Enter the name of your cloudflare pages",
191 defualtPagesName,
192 );
193 pagesProjectSpinner.start("Creating Pages project...");
194 const branch = executeCommand("git branch --show-current");
195 executeCommand(
196 `wrangler pages project create ${pagesName} --production-branch ${branch}`,
197 );
198 pagesProjectSpinner.stop("Pages project created.");
199}
200
201async function createBucketR2() {
202 const wranglerTomlPath = path.join(__dirname, "..", "wrangler.toml");

Callers 1

mainFunction · 0.85

Calls 2

promptFunction · 0.85
executeCommandFunction · 0.85

Tested by

no test coverage detected