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 65a928b commit 6b0f13eCopy full SHA for 6b0f13e
packages/wrangler/src/cloudchamber/apply.ts
@@ -428,14 +428,14 @@ async function resolveImageName(
428
config: Config,
429
image: string
430
): Promise<string> {
431
- // If the image is a relative path return it immediately
432
- if (image.startsWith(".")) {
+ let url: URL;
+ try {
433
+ url = new URL(`http://${image}`);
434
+ } catch (_) {
435
return image;
436
}
437
- const registry = getCloudflareContainerRegistry();
- const url = new URL(`http://${image}`);
438
- if (url.hostname !== registry) {
+ if (url.hostname !== getCloudflareContainerRegistry()) {
439
440
441
0 commit comments