diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..661850f --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,4 @@ +allowBuilds: + esbuild: true + sharp: true + workerd: true diff --git a/public/index.js b/public/index.js deleted file mode 100644 index 2188abc..0000000 --- a/public/index.js +++ /dev/null @@ -1,15 +0,0 @@ -const PDS_URL = "https://pds.is.extraordinarily.cool" - -document.addEventListener("DOMContentLoaded", async () => { - const response = await fetch(`${PDS_URL}/xrpc/com.atproto.repo.listRecords?repo=did:plc:qttsv4e7pu2jl3ilanfgc3zn&collection=fm.teal.alpha.feed.play&limit=1`) - if (!response.ok) { - console.error(`there was an error fetching the latest play data - ${response.status}`) - return; - } - - const data = await response.json(); - - const play = data.records[0].value - - console.log({play}) -})