chore(syndication.js): remove unused data file

This commit is contained in:
Cory Dransfeldt 2025-06-14 16:23:19 -07:00
parent dbf3266e8d
commit c4043bd812
No known key found for this signature in database
3 changed files with 3 additions and 34 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "10.0.2", "version": "10.0.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "10.0.2", "version": "10.0.3",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"minisearch": "^7.1.2", "minisearch": "^7.1.2",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "10.0.2", "version": "10.0.3",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {

View file

@ -1,31 +0,0 @@
import EleventyFetch from "@11ty/eleventy-fetch";
const { POSTGREST_URL, POSTGREST_API_KEY } = process.env;
const fetchSyndication = async () => {
try {
const data = await EleventyFetch(
`${POSTGREST_URL}/optimized_syndication`,
{
duration: "1h",
type: "json",
fetchOptions: {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${POSTGREST_API_KEY}`,
},
},
},
);
return data?.[0] || [];
} catch (error) {
console.error("Error fetching syndication data:", error);
return [];
}
};
export default async function () {
return await fetchSyndication();
}