From d44bcbb80eb5237341579fbce15f0d7b73a2fad0 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 11 Jun 2025 22:19:07 -0700 Subject: [PATCH] Fix some console errors --- prisma/seed.ts | 4 ---- src/routes/api/lastfm/+server.ts | 2 +- static/favicon.ico | 0 static/robots.txt | 20 ++++++++++++++++++++ 4 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 static/favicon.ico create mode 100644 static/robots.txt diff --git a/prisma/seed.ts b/prisma/seed.ts index 551ae57..be31eff 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -25,7 +25,6 @@ async function main() { client: 'Personal Project', role: 'Founder & Designer', projectType: 'work', - featuredImage: '/images/projects/maitsu-cover.png', backgroundColor: '#FFF7EA', highlightColor: '#F77754', displayOrder: 1, @@ -44,7 +43,6 @@ async function main() { client: 'Slack Technologies', role: 'Senior Product Designer', projectType: 'work', - featuredImage: '/images/projects/slack-cover.png', backgroundColor: '#4a154b', highlightColor: '#611F69', displayOrder: 2, @@ -63,7 +61,6 @@ async function main() { client: 'Figma Inc.', role: 'Product Designer', projectType: 'work', - featuredImage: '/images/projects/figma-cover.png', backgroundColor: '#2c2c2c', highlightColor: '#0ACF83', displayOrder: 3, @@ -82,7 +79,6 @@ async function main() { client: 'Pinterest', role: 'Product Designer #1', projectType: 'work', - featuredImage: '/images/projects/pinterest-cover.png', backgroundColor: '#f7f7f7', highlightColor: '#CB1F27', displayOrder: 4, diff --git a/src/routes/api/lastfm/+server.ts b/src/routes/api/lastfm/+server.ts index ca17a5f..8af67d0 100644 --- a/src/routes/api/lastfm/+server.ts +++ b/src/routes/api/lastfm/+server.ts @@ -28,7 +28,7 @@ export const GET: RequestHandler = async ({ url }) => { return await enrichAlbumWithInfo(client, album) } catch (error) { if (error instanceof Error && error.message.includes('Album not found')) { - console.warn(`Skipping album: ${album.name} (Album not found)`) + console.debug(`Skipping album: ${album.name} (Album not found)`) return null // Skip the album } throw error // Re-throw if it's a different error diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..a5a68c2 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,20 @@ +# Allow Google +User-agent: Googlebot +Allow: / + +# Block AI crawlers +User-agent: GPTBot +Disallow: / + +User-agent: ChatGPT-User +Disallow: / + +User-agent: Claude-Web +Disallow: / + +User-agent: PerplexityBot +Disallow: / + +# Allow all other bots +User-agent: * +Allow: / \ No newline at end of file