properly check for pages deployments

This commit is contained in:
GrantBirki 2023-12-07 23:17:03 -07:00
parent 97c920b38e
commit ca0bf5eeba
No known key found for this signature in database
GPG key ID: 96DF969ECBD266FE

View file

@ -269,7 +269,11 @@ async function wranglerCommands() {
setOutput("command-stderr", stdErr);
// Check if this command is a workers or pages deployment
if (command.startsWith("deploy") || command.startsWith("publish")) {
if (
command.startsWith("deploy") ||
command.startsWith("publish") ||
command.startsWith("pages publish")
) {
// If this is a workers or pages deployment, try to extract the deployment URL
let deploymentUrl = "";
const deploymentUrlMatch = stdOut.match(/https?:\/\/[a-zA-Z0-9-\.\/]+/);