Skip to content

Commit

Permalink
🔍 Update metatag base URL
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Jan 7, 2024
1 parent 4e9a814 commit d25bf01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# For local, the variable below is not needed
NEXT_PUBLIC_WEBSITE_URL=
1 change: 1 addition & 0 deletions app/[locale]/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { dir } from 'i18next';
const poppins = Poppins({ subsets: ["latin"], weight: "400", display: "swap" });

export const metadata = {
metadataBase: new URL(process.env.NEXT_PUBLIC_WEBSITE_URL),
title: {
template: '%s | App Waktu Solat Malaysia | Malaysia Prayer Time App',
default: 'App Waktu Solat Malaysia | Malaysia Prayer Time App',
Expand Down

0 comments on commit d25bf01

Please sign in to comment.