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 }