mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-09 07:26:45 +00:00
feat: initial webapp structure from notion2site
This commit is contained in:
21
lib/config.ts
Normal file
21
lib/config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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
|
||||
Reference in New Issue
Block a user