Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/NS-19-add-google-verification #51

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 || '',
};
Loading