Skip to content

Commit ab305f1

Browse files
committed
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.
1 parent 17acb93 commit ab305f1

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

apps/website/app/blog/[slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export default async function BlogPostPage({ params }: Props) {
221221
<article className="mx-auto w-full max-w-7xl px-4 pb-12 sm:px-6 lg:px-8">
222222
<Link
223223
href="/blog"
224-
className="mb-8 inline-flex items-center text-primary transition-colors hover:text-primary/80"
224+
className="mb-8 inline-flex items-center text-primary transition-colors hover:text-primary/80 mt-20"
225225
>
226226
<svg
227227
xmlns="http://www.w3.org/2000/svg"

apps/website/next.config.js

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,34 @@
22

33
/** @type {import('next').NextConfig} */
44
const nextConfig = {
5-
eslint: {
6-
ignoreDuringBuilds: true,
7-
},
85
typescript: {
96
ignoreBuildErrors: true,
107
},
118
images: {
12-
domains: [
13-
"static.ghost.org",
14-
"testing-ghost-8423be-31-220-108-27.traefik.me",
15-
"images.unsplash.com",
16-
"www.gravatar.com",
17-
"cms.dokploy.com",
9+
remotePatterns: [
10+
{
11+
hostname: "static.ghost.org",
12+
},
13+
{
14+
hostname: "testing-ghost-8423be-31-220-108-27.traefik.me",
15+
},
16+
{
17+
hostname: "images.unsplash.com",
18+
},
19+
{
20+
hostname: "www.gravatar.com",
21+
},
22+
{
23+
hostname: "cms.dokploy.com",
24+
},
1825
],
26+
// domains: [
27+
// "static.ghost.org",
28+
// "testing-ghost-8423be-31-220-108-27.traefik.me",
29+
// "images.unsplash.com",
30+
// "www.gravatar.com",
31+
// "cms.dokploy.com",
32+
// ],
1933
},
2034
};
2135

0 commit comments

Comments
 (0)