23 lines
735 B
TypeScript
23 lines
735 B
TypeScript
export const hostApi =
|
|
process.env.NODE_ENV === 'development' && !process.env.NEXT_PUBLIC_BACK_API
|
|
? 'http://localhost'
|
|
: '';
|
|
export const portApi =
|
|
process.env.NODE_ENV === 'development' && !process.env.NEXT_PUBLIC_BACK_API
|
|
? 8080
|
|
: '';
|
|
export const baseURLApi = `${hostApi}${portApi ? `:${portApi}` : ``}/api`;
|
|
|
|
export const localStorageDarkModeKey = 'darkMode';
|
|
|
|
export const localStorageStyleKey = 'style';
|
|
|
|
export const containerMaxW = 'xl:max-w-full xl:mx-auto 2xl:mx-20';
|
|
|
|
export const appTitle = 'created by Flatlogic generator!';
|
|
|
|
export const getPageTitle = (currentPageTitle: string) =>
|
|
`${currentPageTitle} — ${appTitle}`;
|
|
|
|
export const tinyKey = 'cnslp6h943xbg36t2tf2xglmrxiw5b7tatycf3kir7n2j7eh';
|