allow some caching

This commit is contained in:
Cory Dransfeldt 2023-03-13 18:03:26 -07:00
parent 56836c06a1
commit 480d3468ce

View file

@ -3,7 +3,7 @@ const EleventyFetch = require('@11ty/eleventy-fetch')
module.exports = async function () { module.exports = async function () {
const url = 'https://utils.coryd.dev/api/music?limit=1&period=7day' const url = 'https://utils.coryd.dev/api/music?limit=1&period=7day'
const res = EleventyFetch(url, { const res = EleventyFetch(url, {
duration: '0s', duration: '3m',
type: 'json', type: 'json',
}) })
const music = await res const music = await res