This commit is contained in:
@kirill.komarov
2026-05-12 21:53:11 +05:00
parent 57fa4adf08
commit 519c647f65
10 changed files with 153 additions and 43 deletions
+9
View File
@@ -3,6 +3,15 @@ export const apiBaseURL = import.meta.env.VITE_API_URL ?? '/api'
export const STORE_NAME = 'Любимый Креатив'
/** Канонический URL сайта для политики конфиденциальности и т.п.; в dev без env — `window.location.origin`. */
export const STORE_PUBLIC_SITE_URL = (() => {
const raw =
typeof import.meta.env.VITE_PUBLIC_SITE_URL === 'string' ? import.meta.env.VITE_PUBLIC_SITE_URL.trim() : ''
if (raw) return raw.replace(/\/$/, '')
if (typeof window !== 'undefined') return window.location.origin
return ''
})()
/** Демо-контакты для футера; при необходимости задайте через VITE_* в `.env`. */
export const STORE_EMAIL = import.meta.env.VITE_STORE_EMAIL ?? 'hello@example.com'
export const STORE_PHONE = import.meta.env.VITE_STORE_PHONE ?? '+7 (900) 000-00-00'