From f7c68ad19bf34d72ca777d2e2cacdcdd3c306008 Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Wed, 21 Aug 2024 00:08:15 +0000 Subject: [PATCH] refactor: moved domain name to .env variable --- .env.development | 1 + app/_data/metadata.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.development b/.env.development index 71f6fd8..5d4b778 100644 --- a/.env.development +++ b/.env.development @@ -9,5 +9,6 @@ SMTP_PASSWORD=password # Password of your email bot account SMTP_FROM_EMAIL=email # Email address which will be displayed in "From" field SMTP_TO_EMAIL=email # Email to which emails will be sent +DOMAIN_NAME=example.com # Your domain name RESUME_URL=URL # Location of the resume PDF CLARITY_ID=string # Clarity Analytics ID (optional, remove to disable) diff --git a/app/_data/metadata.ts b/app/_data/metadata.ts index ab871e3..f8f3b76 100644 --- a/app/_data/metadata.ts +++ b/app/_data/metadata.ts @@ -3,7 +3,7 @@ import bio from "./bio"; import socials from "./socials"; import Package from "@/../package.json"; -export const canonicalName: URL = new URL("https://xfox111.net"); +export const canonicalName: URL = new URL(`https://${process.env.DOMAIN_NAME}`); const baseTitle: string = "Eugene Fox - Software developer"; const gender: string = "male";