From 34065ad0c5a08d361b62d253cff814c0fd5312a5 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 10 Oct 2023 18:32:06 +0200 Subject: [PATCH] refactor: use safe storage keys --- plugins/1-copy-components.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/1-copy-components.ts b/plugins/1-copy-components.ts index cd9f804..1679e21 100644 --- a/plugins/1-copy-components.ts +++ b/plugins/1-copy-components.ts @@ -1,7 +1,7 @@ import * as fs from "fs"; export default defineNitroPlugin(async () => { console.log("Copying components to public folder..."); - const rawKeys = await useStorage().getKeys("/assets/components"); + const rawKeys = await useStorage().getKeys("assets:components"); rawKeys.forEach(async (key) => { const cleanKey = key.replace("assets:components:", ""); const content = await useStorage().getItem(key);