jan/web/helpers/atoms/ApiServer.atom.ts
NamH 52f84dce9f
chore: clean up some redundant code (#2215)
Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2024-03-03 17:54:01 +07:00

17 lines
451 B
TypeScript

import { atomWithStorage } from 'jotai/utils'
export const hostOptions = ['127.0.0.1', '0.0.0.0']
export const apiServerPortAtom = atomWithStorage('apiServerPort', '1337')
export const apiServerHostAtom = atomWithStorage('apiServerHost', '127.0.0.1')
export const apiServerCorsEnabledAtom = atomWithStorage(
'apiServerCorsEnabled',
true
)
export const apiServerVerboseLogEnabledAtom = atomWithStorage(
'apiServerVerboseLogEnabled',
true
)