From 1a5db501f9c0b63e3afefca0bdcf6a6acb711983 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sun, 3 Mar 2024 15:55:09 -0800 Subject: [PATCH] test: netlify blobs --- src/_data/links.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/_data/links.js b/src/_data/links.js index af8af29c..4a1c4249 100644 --- a/src/_data/links.js +++ b/src/_data/links.js @@ -16,7 +16,7 @@ const filterDuplicates = array => { return array.filter(obj => !seenIds.has(obj.id) && seenIds.add(obj.id)); }; -export default async function ({ constants }) { +export default async function () { // const client = new S3Client({ // credentials: { // accessKeyId: process.env.ACCESS_KEY_B2, @@ -51,8 +51,8 @@ export default async function ({ constants }) { if (process.env.ELEVENTY_PRODUCTION) { const store = getDeployStore({ - siteID: constants.SITE_ID, - token: constants.NETLIFY_API_TOKEN, + siteID: process.env.SITE_ID_NETLIFY, + token: process.env.API_TOKEN_NETLIFY_BLOBS, }); READWISE_LINKS_STORE = await store.getStore("readwise-links"); await READWISE_LINKS_STORE.get('cached-links');