feat: add VITE_SEO_SITE_URL to environment configuration and update SEO component

This commit is contained in:
siujamo
2026-02-25 09:14:18 +08:00
parent d9860618f9
commit aed0f63429
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
# SEO Site URL
VITE_SEO_SITE_URL=http://localhost:5173
+1 -1
View File
@@ -7,7 +7,7 @@ type SeoProps = {
path: string
}
const SITE_URL = "https://dev-lab.onixbyte.dev"
const SITE_URL = import.meta.env.VITE_SEO_SITE_URL
const DEFAULT_IMAGE = `${SITE_URL}/onixbyte.svg`
function setMetaTag(selector: string, attr: string, value: string) {
+1 -1
View File
@@ -1,6 +1,6 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
// todo add env properties here
readonly VITE_SEO_SITE_URL: string
}
interface ImportMeta {