test: netlify blobs

This commit is contained in:
Cory Dransfeldt 2024-03-03 15:55:09 -08:00
parent 64fc1c0f9b
commit 1a5db501f9
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 ({ constants }) { export default async function () {
// 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 ({ constants }) {
if (process.env.ELEVENTY_PRODUCTION) { if (process.env.ELEVENTY_PRODUCTION) {
const store = getDeployStore({ const store = getDeployStore({
siteID: constants.SITE_ID, siteID: process.env.SITE_ID_NETLIFY,
token: constants.NETLIFY_API_TOKEN, token: process.env.API_TOKEN_NETLIFY_BLOBS,
}); });
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');