Files
nextjs-notion-starter-kit/lib/config.ts
2021-01-15 11:31:09 -05:00

22 lines
512 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 defaultSiteImage = '/social.jpg'
export const defaultSiteFavicon = '/favicon.ico'
export const fathomId = isDev ? null : getEnv('FATHOM_ID', null)
export const fathomConfig = fathomId
? {
excludedDomains: ['localhost', 'localhost:3000']
}
: undefined