chore: Launch polish (SEO, Config)
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
This commit is contained in:
parent
8cd578b863
commit
2ac8719359
3 changed files with 50 additions and 0 deletions
12
frontend/app/robots.ts
Normal file
12
frontend/app/robots.ts
Normal file
|
|
@ -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',
|
||||
}
|
||||
}
|
||||
22
frontend/app/sitemap.ts
Normal file
22
frontend/app/sitemap.ts
Normal file
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue