Revert "test: netlify blobs"

This reverts commit 1a5db501f9.
This commit is contained in:
Cory Dransfeldt 2024-03-03 15:59:54 -08:00
parent 1a5db501f9
commit 2cdb255a14
No known key found for this signature in database

View file

@ -16,7 +16,7 @@ const filterDuplicates = array => {
return array.filter(obj => !seenIds.has(obj.id) && seenIds.add(obj.id)); return array.filter(obj => !seenIds.has(obj.id) && seenIds.add(obj.id));
}; };
export default async function () { export default async function ({ constants }) {
// const client = new S3Client({ // const client = new S3Client({
// credentials: { // credentials: {
// accessKeyId: process.env.ACCESS_KEY_B2, // accessKeyId: process.env.ACCESS_KEY_B2,
@ -51,8 +51,8 @@ export default async function () {
if (process.env.ELEVENTY_PRODUCTION) { if (process.env.ELEVENTY_PRODUCTION) {
const store = getDeployStore({ const store = getDeployStore({
siteID: process.env.SITE_ID_NETLIFY, siteID: constants.SITE_ID,
token: process.env.API_TOKEN_NETLIFY_BLOBS, token: constants.NETLIFY_API_TOKEN,
}); });
READWISE_LINKS_STORE = await store.getStore("readwise-links"); READWISE_LINKS_STORE = await store.getStore("readwise-links");
await READWISE_LINKS_STORE.get('cached-links'); await READWISE_LINKS_STORE.get('cached-links');