feat: add VITE_SEO_SITE_URL to environment configuration and update SEO component
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
# SEO Site URL
|
||||||
|
VITE_SEO_SITE_URL=http://localhost:5173
|
||||||
@@ -7,7 +7,7 @@ type SeoProps = {
|
|||||||
path: string
|
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`
|
const DEFAULT_IMAGE = `${SITE_URL}/onixbyte.svg`
|
||||||
|
|
||||||
function setMetaTag(selector: string, attr: string, value: string) {
|
function setMetaTag(selector: string, attr: string, value: string) {
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/// <reference types="vite/client" />
|
/// <reference types="vite/client" />
|
||||||
interface ImportMetaEnv {
|
interface ImportMetaEnv {
|
||||||
// todo add env properties here
|
readonly VITE_SEO_SITE_URL: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ImportMeta {
|
interface ImportMeta {
|
||||||
|
|||||||
Reference in New Issue
Block a user