36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
export const CACHE_FILENAMES = {
|
|
products: 'products.json',
|
|
stores: 'stores.json',
|
|
slots: 'slots.json',
|
|
availability: 'availability.json',
|
|
essentialConsts: 'essential-consts.json',
|
|
banners: 'banners.json',
|
|
} as const
|
|
|
|
/**
|
|
* Region that owns all pre-region data; the default target for backfills and
|
|
* for clients that don't send an explicit regionId.
|
|
*/
|
|
export const DEFAULT_REGION_ID = 1
|
|
|
|
/**
|
|
* Base origin of the backend API, shared by every UI (React Native and web).
|
|
* Framework-agnostic: apps may override it (e.g. VITE_API_URL) at build time.
|
|
*/
|
|
// export const BASE_API_URL = 'https://worker.freshyo.in'
|
|
// export const BASE_API_URL = 'https://devapi.freshyo.in'
|
|
export const BASE_API_URL = 'http://192.168.100.126:8787'
|
|
// export const BASE_API_URL = 'http://192.168.1.5:8787'
|
|
|
|
/**
|
|
* City + pincode defaults per region name, used by address forms so the
|
|
* stored city/pin match the selected region. Regions without an entry
|
|
* (e.g. throwaway test regions) keep whatever the form already holds.
|
|
*/
|
|
export const REGION_CITY_PIN: Record<string, { city: string; pincode: string }> = {
|
|
Mahabubnagar: { city: 'Mahabubnagar', pincode: '509001' },
|
|
Jadcherla: { city: 'Jadcherla', pincode: '509301' },
|
|
}
|
|
|
|
// Re-export all types from the types folder
|
|
export * from './types'
|