diff --git a/apps/api/scripts/get-referrers.ts b/apps/api/scripts/get-referrers.ts index e32e24ae..b2c5f3d1 100644 --- a/apps/api/scripts/get-referrers.ts +++ b/apps/api/scripts/get-referrers.ts @@ -1,6 +1,11 @@ import fs from 'node:fs'; import path from 'node:path'; +// extras +const extraReferrers = { + 'bsky.app': { type: 'social', name: 'Bluesky' }, +}; + function transform(data: any) { const obj: Record = {}; for (const type in data) { @@ -34,7 +39,10 @@ async function main() { `// The orginal referers.yml is based on Piwik's SearchEngines.php and Socials.php, copyright 2012 Matthieu Aubry and available under the GNU General Public License v3.`, '', `const referrers: Record = ${JSON.stringify( - transform(data), + { + ...transform(data), + ...extraReferrers, + }, )} as const;`, 'export default referrers;', ].join('\n'), diff --git a/apps/api/src/referrers/index.ts b/apps/api/src/referrers/index.ts index 3bcba5ee..ab704264 100644 --- a/apps/api/src/referrers/index.ts +++ b/apps/api/src/referrers/index.ts @@ -2680,5 +2680,6 @@ const referrers: Record = { 'hyves.nl': { type: 'social', name: 'Hyves' }, 'paper.li': { type: 'social', name: 'Paper.li' }, 'moikrug.ru': { type: 'social', name: 'MoiKrug.ru' }, + 'bsky.app': { type: 'social', name: 'Bluesky' }, } as const; export default referrers;