From bc64a2dc96d6e041f67a155cf4ed1c1b30f7db07 Mon Sep 17 00:00:00 2001 From: Binur Konarbai Date: Mon, 23 Sep 2024 10:02:42 +0500 Subject: [PATCH] Fix preview action throwing an error when `qr-target: dev-build` is used --- src/actions/preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/preview.ts b/src/actions/preview.ts index f11f5bc5b..52758811e 100644 --- a/src/actions/preview.ts +++ b/src/actions/preview.ts @@ -18,7 +18,7 @@ export const MESSAGE_ID = 'projectId:{projectId}'; export function previewInput() { const qrTarget = getInput('qr-target') || undefined; - if (qrTarget && !['expo-go', 'dev-client'].includes(qrTarget)) { + if (qrTarget && !['expo-go', 'dev-build', 'dev-client'].includes(qrTarget)) { throw new Error(`Invalid QR code target: "${qrTarget}", expected "expo-go" or "dev-build"`); }