Compare commits

...

2 Commits

Author SHA1 Message Date
Oleg Proskurin 9679934bb8 feat: add sitemap and robots 2025-12-15 23:34:06 +07:00
Oleg Proskurin f433f59e6b feat: setup trailing slashes 2025-12-15 23:32:01 +07:00
5 changed files with 33 additions and 6 deletions

View File

@ -2,6 +2,7 @@ import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
output: 'standalone',
trailingSlash: true,
images: {
unoptimized: true,
},

View File

@ -17,6 +17,9 @@ const caveat = Caveat({
display: 'swap',
});
export const metadata: Metadata = {
metadataBase: new URL('https://banatie.app'),
};
export default function RootLayout({
children,

View File

@ -34,16 +34,16 @@ export const metadata: Metadata = {
robots: 'index, follow',
alternates: {
canonical: 'https://banatie.app',
canonical: '/',
languages: {
en: 'https://banatie.app',
'x-default': 'https://banatie.app',
en: '/',
'x-default': '/',
},
},
openGraph: {
type: 'website',
url: 'https://banatie.app',
url: '/',
title: 'AI Image Generation Inside Your Workflow | Banatie',
description:
'Generate production-ready images via API, SDK, CLI, or Prompt URLs. Built-in CDN delivery, style references, and smart prompt enhancement. Built for developers.',
@ -51,7 +51,7 @@ export const metadata: Metadata = {
locale: 'en_US',
images: [
{
url: 'https://banatie.app/og-image.png',
url: '/og-image.png',
width: 1200,
height: 630,
alt: 'Banatie - AI Image Generation API for Developers',
@ -64,7 +64,7 @@ export const metadata: Metadata = {
title: 'AI Image Generation Inside Your Workflow | Banatie',
description:
'Generate production-ready images via API, SDK, CLI, or Prompt URLs. Built-in CDN delivery, style references, and smart prompt enhancement. Built for developers.',
images: ['https://banatie.app/og-image.png'],
images: ['/og-image.png'],
},
};

View File

@ -0,0 +1,11 @@
import { MetadataRoute } from 'next';
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
},
sitemap: 'https://banatie.app/sitemap.xml',
};
}

View File

@ -0,0 +1,12 @@
import { MetadataRoute } from 'next';
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: 'https://banatie.app/',
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 1,
},
];
}