Skip to content

Commit

Permalink
run prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Aug 16, 2023
1 parent c8b1104 commit df02cbd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/create-cloudflare/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ export const runDeploy = async (ctx: PagesGeneratorContext) => {
...baseDeployCmd,
// Important: the following assumes that all framework deploy commands terminate with `wrangler pages deploy`
...(ctx.framework?.commitMessage && !insideGitRepo
? ['--', `--commit-message="${ctx.framework.commitMessage.replaceAll('"', "\\\"")}"`]
? [
"--",
`--commit-message="${ctx.framework.commitMessage.replaceAll(
'"',
'\\"'
)}"`,
]
: []),
];

Expand All @@ -111,7 +117,9 @@ export const runDeploy = async (ctx: PagesGeneratorContext) => {
cwd: ctx.project.path,
env: { CLOUDFLARE_ACCOUNT_ID: ctx.account.id, NODE_ENV: "production" },
startText: "Deploying your application",
doneText: `${brandColor("deployed")} ${dim(`via \`${baseDeployCmd.join(' ')}\``)}`,
doneText: `${brandColor("deployed")} ${dim(
`via \`${baseDeployCmd.join(" ")}\``
)}`,
});

const deployedUrlRegex = /https:\/\/.+\.(pages|workers)\.dev/;
Expand Down

0 comments on commit df02cbd

Please sign in to comment.