Skip to content

Commit

Permalink
Feature/NS-19-add-google-verification (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skolaczk authored Jan 28, 2024
1 parent 4fb6131 commit 62803b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Duplicate this to .env.local

NEXT_PUBLIC_SITE_URL='https://example.com'
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
3 changes: 3 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const metadata: Metadata = {
shortcut: '/favicon/favicon-16x16.png',
apple: '/favicon/apple-touch-icon.png',
},
verification: {
google: siteConfig.googleSiteVerificationId,
},
openGraph: {
url: siteConfig.url,
title: siteConfig.title,
Expand Down
5 changes: 4 additions & 1 deletion src/lib/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const siteConfig = {
'It is a Next.js starter template powered by TypeScript, styled with Tailwind CSS and Shadcn/ui. Features include Dark Mode, SEO optimization, and pre-configured eslint, prettier, husky, and lint-staged settings. Jumpstart your project with efficiency and style.',
keywords: [
'Next.js',
'Next.js starter',
'Next.js boilerplate',
'Tailwind CSS',
'TypeScript',
'Dark Mode',
Expand All @@ -16,7 +18,6 @@ export const siteConfig = {
'Github actions',
'Web Development',
'Starter Template',
'Next.js starter',
'Frontend',
'React',
'JavaScript',
Expand All @@ -27,4 +28,6 @@ export const siteConfig = {
'Code Quality',
],
url: process.env.NEXT_PUBLIC_SITE_URL || 'https://example.com',
googleSiteVerificationId:
process.env.NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID || '',
};

0 comments on commit 62803b3

Please sign in to comment.