Files
nextjs-notion-starter-kit/lib/config.ts
Travis Fischer 32b845af2b feat: minor fixes
2021-01-15 12:51:25 -05:00

19 lines
416 B
TypeScript

/**
* All app config that should be available client-side.
*
* @see env.ts for server-side version.
*/
import { getEnv } from './get-env'
export const isDev =
process.env.NODE_ENV === 'development' || !process.env.NODE_ENV
export const fathomId = isDev ? null : getEnv('FATHOM_ID', null)
export const fathomConfig = fathomId
? {
excludedDomains: ['localhost', 'localhost:3000']
}
: undefined