🏗️ Phase 1 for production readyness

This commit is contained in:
RJ
2025-11-24 15:59:18 +02:00
parent 5f585e2a9f
commit f383b86b4d
10 changed files with 77 additions and 8 deletions

View File

@@ -76,7 +76,7 @@ export default async function BlogPostPage({ params }: { params: Promise<{ slug:
const relatedPosts = await getRelatedPosts(slugPath)
const headings = extractHeadings(post.content)
const fullUrl = `https://yourdomain.com/blog/${slugPath}`
const fullUrl = `${process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3030'}/blog/${slugPath}`
return (
<>

View File

@@ -11,7 +11,7 @@ export const metadata: Metadata = {
default: 'Terminal Blog - Build. Write. Share.',
},
description: 'Explorează idei despre dezvoltare, design și tehnologie',
metadataBase: new URL('http://localhost:3000'),
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3030'),
authors: [{ name: 'Terminal User' }],
keywords: ['blog', 'dezvoltare web', 'nextjs', 'react', 'typescript', 'terminal'],
openGraph: {