Skip to content

Commit

Permalink
fix commit message not being properly passed
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-piotrowicz committed Aug 16, 2023
1 parent 6de2938 commit c8b1104
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/create-cloudflare/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ export const runDeploy = async (ctx: PagesGeneratorContext) => {
const deployCmd = [
...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('"', "\\\"")}"`
: "",
].filter(Boolean);
...(ctx.framework?.commitMessage && !insideGitRepo
? ['--', `--commit-message="${ctx.framework.commitMessage.replaceAll('"', "\\\"")}"`]
: []),
];

const result = await runCommand(deployCmd, {
silent: true,
cwd: ctx.project.path,
env: { CLOUDFLARE_ACCOUNT_ID: ctx.account.id, NODE_ENV: "production" },
startText: `Deploying your application`,
startText: "Deploying your application",
doneText: `${brandColor("deployed")} ${dim(`via \`${baseDeployCmd.join(' ')}\``)}`,
});

Expand Down

0 comments on commit c8b1104

Please sign in to comment.