We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd282c8 commit 01d4e59Copy full SHA for 01d4e59
packages/wrangler/src/cloudchamber/apply.ts
@@ -425,14 +425,14 @@ async function resolveImageName(
425
config: Config,
426
image: string
427
): Promise<string> {
428
- // If the image is a relative path return it immediately
429
- if (image.startsWith(".")) {
+ let url: URL;
+ try {
430
+ url = new URL(`http://${image}`);
431
+ } catch (_) {
432
return image;
433
}
434
- const registry = getCloudflareContainerRegistry();
- const url = new URL(`http://${image}`);
435
- if (url.hostname !== registry) {
+ if (url.hostname !== getCloudflareContainerRegistry()) {
436
437
438
0 commit comments