Fix some console errors

This commit is contained in:
Justin Edmund 2025-06-11 22:19:07 -07:00
parent e07cde3837
commit d44bcbb80e
4 changed files with 21 additions and 5 deletions

View file

@ -25,7 +25,6 @@ async function main() {
client: 'Personal Project', client: 'Personal Project',
role: 'Founder & Designer', role: 'Founder & Designer',
projectType: 'work', projectType: 'work',
featuredImage: '/images/projects/maitsu-cover.png',
backgroundColor: '#FFF7EA', backgroundColor: '#FFF7EA',
highlightColor: '#F77754', highlightColor: '#F77754',
displayOrder: 1, displayOrder: 1,
@ -44,7 +43,6 @@ async function main() {
client: 'Slack Technologies', client: 'Slack Technologies',
role: 'Senior Product Designer', role: 'Senior Product Designer',
projectType: 'work', projectType: 'work',
featuredImage: '/images/projects/slack-cover.png',
backgroundColor: '#4a154b', backgroundColor: '#4a154b',
highlightColor: '#611F69', highlightColor: '#611F69',
displayOrder: 2, displayOrder: 2,
@ -63,7 +61,6 @@ async function main() {
client: 'Figma Inc.', client: 'Figma Inc.',
role: 'Product Designer', role: 'Product Designer',
projectType: 'work', projectType: 'work',
featuredImage: '/images/projects/figma-cover.png',
backgroundColor: '#2c2c2c', backgroundColor: '#2c2c2c',
highlightColor: '#0ACF83', highlightColor: '#0ACF83',
displayOrder: 3, displayOrder: 3,
@ -82,7 +79,6 @@ async function main() {
client: 'Pinterest', client: 'Pinterest',
role: 'Product Designer #1', role: 'Product Designer #1',
projectType: 'work', projectType: 'work',
featuredImage: '/images/projects/pinterest-cover.png',
backgroundColor: '#f7f7f7', backgroundColor: '#f7f7f7',
highlightColor: '#CB1F27', highlightColor: '#CB1F27',
displayOrder: 4, displayOrder: 4,

View file

@ -28,7 +28,7 @@ export const GET: RequestHandler = async ({ url }) => {
return await enrichAlbumWithInfo(client, album) return await enrichAlbumWithInfo(client, album)
} catch (error) { } catch (error) {
if (error instanceof Error && error.message.includes('Album not found')) { 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 return null // Skip the album
} }
throw error // Re-throw if it's a different error throw error // Re-throw if it's a different error

0
static/favicon.ico Normal file
View file

20
static/robots.txt Normal file
View file

@ -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: /