feat(assets): new assets loading system (currently only for images)

This commit is contained in:
2025-12-17 12:28:48 +01:00
parent a31f72f41d
commit 2f16f382e5
106 changed files with 359 additions and 366 deletions

View File

@@ -13,7 +13,10 @@ export default defineNuxtModule({
async setup(_, nuxt) {
const logger = useLogger("content-assets");
const contentDir = join(nuxt.options.rootDir, "content");
const publicDir = join(nuxt.options.rootDir, "public/images/projects");
const publicDir = join(
nuxt.options.rootDir,
"public/images/projects/pokemons",
);
const getFileChecksum = async (filePath: string): Promise<string> => {
const content = await readFile(filePath);