feat: add VITE_SEO_SITE_URL to environment configuration and update SEO component
This commit is contained in:
@@ -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) {
|
||||
|
||||
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
||||
/// <reference types="vite/client" />
|
||||
interface ImportMetaEnv {
|
||||
// todo add env properties here
|
||||
readonly VITE_SEO_SITE_URL: string
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user