From cf4c8e06645101d095da0fd9ca6a0b7193d947a3 Mon Sep 17 00:00:00 2001 From: Mentlegen <9807008+gentlementlegen@users.noreply.github.com> Date: Fri, 4 Oct 2024 14:24:42 +0900 Subject: [PATCH] chore: fix wrangler setup --- deploy/setup-kv-namespace.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/setup-kv-namespace.ts b/deploy/setup-kv-namespace.ts index 5f146b7..824c009 100644 --- a/deploy/setup-kv-namespace.ts +++ b/deploy/setup-kv-namespace.ts @@ -76,7 +76,7 @@ async function main() { // Check if the namespace exists or create a new one let namespaceId: string; try { - const res = execSync(`wrangler kv:namespace create ${NAMESPACE_TITLE}`).toString(); + const res = execSync(`wrangler kv namespace create ${NAMESPACE_TITLE}`).toString(); console.log(res); const newId = res.match(/id = \s*"([^"]+)"/)?.[1]; if (!newId) { @@ -86,7 +86,7 @@ async function main() { console.log(`Namespace created with ID: ${namespaceId}`); } catch (error) { console.error(error); - const listOutput = JSON.parse(execSync(`wrangler kv:namespace list`).toString()) as Namespace[]; + const listOutput = JSON.parse(execSync(`wrangler kv namespace list`).toString()) as Namespace[]; const existingNamespace = listOutput.find((o) => o.title === NAMESPACE_TITLE_WITH_PREFIX); if (!existingNamespace) { throw new Error(`Error creating namespace: ${error}`);