feat: setup trailing slashes

This commit is contained in:
Oleg Proskurin 2025-12-15 23:32:01 +07:00
parent 9c4dd35782
commit f433f59e6b
3 changed files with 10 additions and 6 deletions

View File

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

View File

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

View File

@ -34,16 +34,16 @@ export const metadata: Metadata = {
robots: 'index, follow', robots: 'index, follow',
alternates: { alternates: {
canonical: 'https://banatie.app', canonical: '/',
languages: { languages: {
en: 'https://banatie.app', en: '/',
'x-default': 'https://banatie.app', 'x-default': '/',
}, },
}, },
openGraph: { openGraph: {
type: 'website', type: 'website',
url: 'https://banatie.app', url: '/',
title: 'AI Image Generation Inside Your Workflow | Banatie', title: 'AI Image Generation Inside Your Workflow | Banatie',
description: 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.', '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', locale: 'en_US',
images: [ images: [
{ {
url: 'https://banatie.app/og-image.png', url: '/og-image.png',
width: 1200, width: 1200,
height: 630, height: 630,
alt: 'Banatie - AI Image Generation API for Developers', alt: 'Banatie - AI Image Generation API for Developers',
@ -64,7 +64,7 @@ export const metadata: Metadata = {
title: 'AI Image Generation Inside Your Workflow | Banatie', title: 'AI Image Generation Inside Your Workflow | Banatie',
description: 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.', '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'],
}, },
}; };