Skip to content

Commit

Permalink
add canonical URL to metadata using environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
akib1689 committed Dec 31, 2024
1 parent 08bd258 commit 8ba938b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export const metadata: Metadata = {
alt: process.env.AUTHOR_NAME,
},
],
},
alternates: {
canonical: process.env.WEBSITE_URL,
}

};
Expand Down

0 comments on commit 8ba938b

Please sign in to comment.