refactor: use safe storage keys
This commit is contained in:
parent
5fd575a2dc
commit
34065ad0c5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue