Skip to content

Commit

Permalink
chore: Update metadataBase URL in layout.tsx and add github env
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Jul 10, 2024
1 parent b8c1c65 commit 8268cf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
jobs:
checking-pr:
runs-on: ubuntu-latest
environment: github-pages

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export async function generateMetadata(): Promise<Metadata> {
const scopedT = await getScopedI18n("HomeLayout");

return {
metadataBase: new URL(
process.env.NEXT_PUBLIC_WEBSITE_URL || "multiformvalidator.vercel.app",
),
metadataBase: new URL(
process.env.NEXT_PUBLIC_WEBSITE_URL || "https://multiformvalidator.netlify.app",
),

title: {
template: `${scopedT("Title")} | %s`,
Expand Down

0 comments on commit 8268cf7

Please sign in to comment.