Skip to content

Commit aaa9354

Browse files
authored
Merge pull request #7 from Mahrjose/dev
Refactor SEO and Imports, Add Static Metadata, and Update Dependencies
2 parents c48d4b0 + 6ca5d60 commit aaa9354

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1335
-1219
lines changed

next.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const nextConfig: NextConfig = {
1414
protocol: 'https',
1515
hostname: 'images.unsplash.com',
1616
},
17+
{
18+
protocol: 'https',
19+
hostname: 'cdn.hashnode.com'
20+
},
1721
],
1822
},
1923
trailingSlash: false,

package-lock.json

Lines changed: 105 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "portfolio",
33
"version": "0.1.0",
44
"private": true,
5+
"type": "module",
56
"scripts": {
67
"dev": "next dev --turbopack",
78
"build": "next build",
@@ -43,6 +44,7 @@
4344
"clsx": "^2.1.1",
4445
"cmdk": "^1.1.1",
4546
"date-fns": "^4.1.0",
47+
"dotenv": "^16.6.0",
4648
"embla-carousel-react": "^8.6.0",
4749
"framer-motion": "^12.17.3",
4850
"input-otp": "^1.4.2",
@@ -51,6 +53,7 @@
5153
"next-seo": "^6.8.0",
5254
"next-sitemap": "^4.2.3",
5355
"next-themes": "^0.4.6",
56+
"node-fetch": "^3.3.2",
5457
"postcss": "^8.5.4",
5558
"react": "^19.1.0",
5659
"react-day-picker": "^9.7.0",

seo.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { DefaultSeoProps } from 'next-seo';
4-
import { meta } from '@/lib/data';
4+
import { meta } from '@/lib/data/data';
55

66
const domain = meta.domain;
77

src/app/about/page.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
'use client';
1+
// temp solution for metadata withouth dynamic SEO
2+
export const metadata = {
3+
title: 'About | Mirza Mahrab Hossain',
4+
description: 'Learn more about Mirza Mahrab Hossain — Software engineer, AI & Cybersecurity enthusiast, and passionate developer.',
5+
};
6+
27

3-
import dynamic from 'next/dynamic';
48
import AboutHeader from '@/components/about/about-header';
59
import ProfileSidebarCard from '@/components/about/profile';
610
import MyStorySection from '@/components/about/personal-story';
@@ -9,17 +13,18 @@ import HobbiesGrid from '@/components/about/hobbies';
913
import PlatformsGrid from '@/components/about/socials';
1014
import LanguagesGrid from '@/components/about/languages';
1115
import PhilosophySection from '@/components/about/philosophy';
12-
import { portfolioData } from '@/lib/data';
13-
import { meta } from '@/lib/data';
16+
import { portfolioData } from '@/lib/data/data';
1417

15-
const NextSeo = dynamic(() => import('next-seo').then(mod => mod.NextSeo), { ssr: false });
18+
// import dynamic from 'next/dynamic';
19+
// import { meta } from '@/lib/data';
20+
// const NextSeo = dynamic(() => import('next-seo').then(mod => mod.NextSeo), { ssr: false });
1621

1722
export default function AboutPage() {
1823
const { about, hero } = portfolioData;
1924

2025
return (
2126
<>
22-
<NextSeo
27+
{/* <NextSeo
2328
title="About | Mirza Mahrab Hossain"
2429
description={about.summary}
2530
canonical={`${meta.domain}/about`}
@@ -44,7 +49,7 @@ export default function AboutPage() {
4449
handle: '@mahrjosee',
4550
site: '@mahrjosee',
4651
}}
47-
/>
52+
/> */}
4853
<main className="min-h-screen pt-20 pb-12 page-transition">
4954
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
5055
<AboutHeader summary={about.summary} />

src/app/blog/page.tsx

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)