From 2ac8719359ac79d46f992a8d1e8dd33126aa5951 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Wed, 24 Dec 2025 18:21:12 -0800 Subject: [PATCH] chore: Launch polish (SEO, Config) --- frontend/app/robots.ts | 12 ++++++++++++ frontend/app/sitemap.ts | 22 ++++++++++++++++++++++ frontend/next.config.ts | 16 ++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 frontend/app/robots.ts create mode 100644 frontend/app/sitemap.ts diff --git a/frontend/app/robots.ts b/frontend/app/robots.ts new file mode 100644 index 0000000..be1df77 --- /dev/null +++ b/frontend/app/robots.ts @@ -0,0 +1,12 @@ +import { MetadataRoute } from 'next' + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: '*', + allow: '/', + disallow: ['/admin/', '/api/'], + }, + sitemap: 'https://elmeg.xyz/sitemap.xml', + } +} diff --git a/frontend/app/sitemap.ts b/frontend/app/sitemap.ts new file mode 100644 index 0000000..dee524e --- /dev/null +++ b/frontend/app/sitemap.ts @@ -0,0 +1,22 @@ +import { MetadataRoute } from 'next' + +export default function sitemap(): MetadataRoute.Sitemap { + const baseUrl = 'https://elmeg.xyz' + + const routes = [ + '', + '/shows', + '/songs', + '/venues', + '/videos', + '/stats', + '/shows/upcoming', + ].map((route) => ({ + url: `${baseUrl}${route}`, + lastModified: new Date(), + changeFrequency: 'daily' as const, + priority: route === '' ? 1 : 0.8, + })) + + return routes +} diff --git a/frontend/next.config.ts b/frontend/next.config.ts index ca6c939..73ad6e1 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -2,6 +2,22 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { devIndicators: false, + images: { + remotePatterns: [ + { + protocol: 'https', + hostname: 'elgoose.net', + }, + { + protocol: 'https', + hostname: 'i.ytimg.com', + }, + { + protocol: 'https', + hostname: 'yt3.ggpht.com', + }, + ], + }, }; export default nextConfig;