Skip to content

Commit

Permalink
Fix deployment endpoint for wrangler pages publish
Browse files Browse the repository at this point in the history
  • Loading branch information
GregBrimble committed May 6, 2022
1 parent 9903526 commit 93e0ac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sour-lies-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

fix: Hit correct endpoint for 'wrangler pages publish'
2 changes: 1 addition & 1 deletion packages/wrangler/src/pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ const createDeployment: CommandModule<
}

const deploymentResponse = await fetchResult<Deployment>(
`/accounts/${accountId}/pages/projects/${projectName}/deployment`,
`/accounts/${accountId}/pages/projects/${projectName}/deployments`,
{
method: "POST",
body: formData,
Expand Down

0 comments on commit 93e0ac1

Please sign in to comment.