Skip to content

Commit 01dc6c6

Browse files
committed
feat: add Google Search Console verification
1 parent e42fca2 commit 01dc6c6

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,12 @@ NEXT_PUBLIC_UPI_ID=your_name@upi
5858
# Buy Me a Coffee username — used to generate your donation page link.
5959
# Your profile URL will be: https://buymeacoffee.com/<username>
6060
NEXT_PUBLIC_BUYMEACOFFEE_USERNAME=your-username
61+
62+
# =============================================================================
63+
# SEO & VERIFICATION
64+
# =============================================================================
65+
66+
# Google Search Console site verification token.
67+
# Found in Search Console → Settings → Ownership verification → HTML tag method.
68+
# Copy only the content="..." value, not the full meta tag.
69+
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=your-google-site-verification-token

.github/workflows/nextjs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727

2828
# Contact form (Formspree)
2929
NEXT_PUBLIC_FORMSPREE_FORM_ID: ${{ secrets.FORMSPREE_FORM_ID }}
30+
31+
# SEO & Verification
32+
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION: ${{ secrets.GOOGLE_SITE_VERIFICATION }}
3033

3134
# Anti-spam CAPTCHA (Cloudflare Turnstile — public site key only)
3235
NEXT_PUBLIC_TURNSTILE_SITE_KEY: ${{ secrets.TURNSTILE_SITE_KEY }}

app/layout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Metadata } from 'next';
33
import { Inter } from 'next/font/google';
44
import Header from '@/app/components/layout/Header';
55
import Footer from '@/app/components/layout/Footer';
6-
import { Name, PortfolioURL } from '@/app/utils/config';
6+
import { Name, PortfolioURL, GoogleSiteVerification } from '@/app/utils/config';
77

88
const inter = Inter({
99
subsets: ['latin'],
@@ -27,9 +27,11 @@ export const metadata: Metadata = {
2727
type: "website"
2828
},
2929
metadataBase: new URL(PortfolioURL),
30+
verification: {
31+
google: GoogleSiteVerification,
32+
},
3033
};
3134

32-
3335
// Root layout component that wraps all pages
3436
export default function RootLayout({
3537
children,

app/utils/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export const DiscordLink = socialLinks[4].url;
5656
export const BuyMeACoffeeLink = process.env.NEXT_PUBLIC_BUYMEACOFFEE_USERNAME ? `https://buymeacoffee.com/${process.env.NEXT_PUBLIC_BUYMEACOFFEE_USERNAME}` : null;
5757
export const UPI_ID = process.env.NEXT_PUBLIC_UPI_ID || '';
5858

59+
// --- SEO & Verification ---
60+
export const GoogleSiteVerification = process.env.NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION || '';
61+
5962
// --- Portfolio Metadata ---
6063
export const CurrentGithubLink = "https://github.com/Amitminer/amitminer.github.io/";
6164
export const PortfolioURL = "https://amitminer.github.io";

0 commit comments

Comments
 (0)