INNER CODE UNIT · TypeScript

deploymentUrlMatch

cloudflare/wrangler-action · src/commandOutputParsing.ts:20

	const deploymentUrlMatch = stdOut.match(/https?:\/\/[a-zA-Z0-9-./]+/);
	if (deploymentUrlMatch && deploymentUrlMatch[0]) {
		deploymentUrl = deploymentUrlMatch[0].trim();
	}

	// And also try to extract the alias URL (since wrangler@3.78.0)
	const aliasUrlMatch = stdOut.match(/alias URL: (https?:\/\/[a-zA-Z0-9-./]+)/);
	if (aliasUrlMatch && aliasUrlMatch[1]) {
		aliasUrl = aliasUrlMatch[1].trim();
	}

	return { deploymentUrl, aliasUrl };
}

async function handlePagesDeployOutputEntry(
	config: WranglerActionConfig,
	pagesDeployOutputEntry: OutputEntryPagesDeployment,
) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…