chore: debug
This commit is contained in:
parent
4dd56374dc
commit
209e04c555
2 changed files with 10 additions and 4 deletions
|
@ -13,8 +13,8 @@ export const onPreBuild = async ({ constants }) => {
|
|||
const artistsMap = await artists.get('artists-map', { type: 'json' })
|
||||
const albumsMap = await albums.get('albums-map', { type: 'json' })
|
||||
const nowPlaying = await scrobbles.get('now-playing', { type: 'json'})
|
||||
fs.writeFileSync('/src/_data/json/scrobbles-window.json', JSON.stringify(windowData))
|
||||
fs.writeFileSync('/src/_data/json/artists-map.json', JSON.stringify(artistsMap))
|
||||
fs.writeFileSync('/src/_data/json/albums-map.json', JSON.stringify(artistsMap))
|
||||
fs.writeFileSync('/src/_data/json/now-playing.json', JSON.stringify(artistsMap))
|
||||
fs.writeFileSync('./src/_data/json/scrobbles-window.json', JSON.stringify(windowData))
|
||||
fs.writeFileSync('./src/_data/json/artists-map.json', JSON.stringify(artistsMap))
|
||||
fs.writeFileSync('./src/_data/json/albums-map.json', JSON.stringify(artistsMap))
|
||||
fs.writeFileSync('./src/_data/json/now-playing.json', JSON.stringify(artistsMap))
|
||||
}
|
6
src/_data/test.js
Normal file
6
src/_data/test.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import window from './json/scrobbles-window.js'
|
||||
|
||||
export default async function () {
|
||||
console.log(window)
|
||||
return window
|
||||
}
|
Reference in a new issue