refactor: update Next.js configuration and blog post styling

- Replaced the deprecated 'domains' property with 'remotePatterns' in the Next.js configuration for image handling.
- Adjusted the margin of the blog post link to improve layout consistency.
This commit is contained in:
Mauricio Siu
2025-12-17 23:34:05 -06:00
parent 17acb93ae2
commit ab305f1c11
2 changed files with 24 additions and 10 deletions

View File

@@ -221,7 +221,7 @@ export default async function BlogPostPage({ params }: Props) {
<article className="mx-auto w-full max-w-7xl px-4 pb-12 sm:px-6 lg:px-8">
<Link
href="/blog"
className="mb-8 inline-flex items-center text-primary transition-colors hover:text-primary/80"
className="mb-8 inline-flex items-center text-primary transition-colors hover:text-primary/80 mt-20"
>
<svg
xmlns="http://www.w3.org/2000/svg"

View File

@@ -2,20 +2,34 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: {
domains: [
"static.ghost.org",
"testing-ghost-8423be-31-220-108-27.traefik.me",
"images.unsplash.com",
"www.gravatar.com",
"cms.dokploy.com",
remotePatterns: [
{
hostname: "static.ghost.org",
},
{
hostname: "testing-ghost-8423be-31-220-108-27.traefik.me",
},
{
hostname: "images.unsplash.com",
},
{
hostname: "www.gravatar.com",
},
{
hostname: "cms.dokploy.com",
},
],
// domains: [
// "static.ghost.org",
// "testing-ghost-8423be-31-220-108-27.traefik.me",
// "images.unsplash.com",
// "www.gravatar.com",
// "cms.dokploy.com",
// ],
},
};