Skip to content

Commit

Permalink
Use deploy instead of publish
Browse files Browse the repository at this point in the history
  • Loading branch information
arnarthor authored Sep 27, 2023
1 parent 5b87cca commit 1d1347c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ export default async function deployExecutor(
return runWranglerCommandForProject(
deployOptions,
context,
'pages publish'
'pages deploy'
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export default async function deployExecutor(
options: WorkerDeployExecutorSchema,
context: ExecutorContext
) {
return runWranglerCommandForProject(options, context, 'publish');
return runWranglerCommandForProject(options, context, 'deploy');
}
4 changes: 2 additions & 2 deletions packages/nx-cloudflare-wrangler/src/executors/wrangler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function runWranglerCommandForProject(

const wranglerOptions = [];

if (command === 'pages publish') {
if (command === 'pages deploy') {
wranglerOptions.push((options as PagesDeployExecutorSchema).dist);
wranglerOptions.push(
'--project-name="' +
Expand All @@ -52,7 +52,7 @@ export function runWranglerCommandForProject(
);
} else if (command === 'pages dev') {
wranglerOptions.push((options as PagesDeployExecutorSchema).dist);
} else if (command === 'publish') {
} else if (command === 'deploy') {
wranglerOptions.push(
joinPathFragments(
workspaceRoot,
Expand Down

0 comments on commit 1d1347c

Please sign in to comment.