From c835f6d567cfcb3896e2ce944ff2572d5ac25ba8 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 26 Sep 2022 22:01:45 +0100 Subject: [PATCH] refactor: move `talks.json` out of content --- src/composables/prefetch.ts | 2 +- src/{content => data}/talks.json | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{content => data}/talks.json (100%) diff --git a/src/composables/prefetch.ts b/src/composables/prefetch.ts index 321d63cd..5873a338 100644 --- a/src/composables/prefetch.ts +++ b/src/composables/prefetch.ts @@ -77,7 +77,7 @@ const useAsyncTalks = () => useAsyncData( () => ( - process.server && import('../content/talks.json').then(r => r.default) + process.server && import('../data/talks.json').then(r => r.default) ).then(async r => process.client && r instanceof Blob ? JSON.parse(await r.text()) : r ) as unknown as Promise, diff --git a/src/content/talks.json b/src/data/talks.json similarity index 100% rename from src/content/talks.json rename to src/data/talks.json -- knotmirror 0.0.1