25 lines
598 B
TypeScript
25 lines
598 B
TypeScript
const API_URL = import.meta.env.VITE_API_URL?.replace(/\/$/, '') || 'https://kitchen-crm.k1nq.tech'
|
|
const API_PREFIX = '/api/v1'
|
|
const APP_NAME = 'Kitchen CRM'
|
|
const ORG_HEADER = 'X-Organization-Id'
|
|
|
|
export const env = {
|
|
APP_NAME,
|
|
API_URL,
|
|
API_PREFIX,
|
|
ORG_HEADER,
|
|
DASHBOARD_URL: import.meta.env.VITE_APP_URL || (typeof window !== 'undefined' ? window.location.origin : ''),
|
|
}
|
|
|
|
export const storageKeys = {
|
|
theme: 'kcrm-theme',
|
|
tokens: 'kcrm-auth-tokens',
|
|
user: 'kcrm-user',
|
|
activeOrg: 'kcrm-active-org',
|
|
}
|
|
|
|
export const pagination = {
|
|
defaultPageSize: 20,
|
|
maxPageSize: 100,
|
|
}
|