deploy
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user