From 6a7cdf4460a56d69e896e010354b29faeec25ca7 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 3 Apr 2024 19:57:00 -0700 Subject: [PATCH] chore: debug --- src/_data/test.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/_data/test.js b/src/_data/test.js index ee1cf5c0..671347d4 100644 --- a/src/_data/test.js +++ b/src/_data/test.js @@ -1,6 +1,13 @@ -import window from './json/scrobbles-window.json' +import fs from 'fs' export default async function () { + const window = fs.readFileSync('./json/scrobbles-window.json', (error, data) => { + if (error) { + console.log(error); + return; + } + return JSON.parse(data) + }) console.log(window) return window }