mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-04 23:16:47 +00:00
15 lines
337 B
TypeScript
15 lines
337 B
TypeScript
import * as config from './env'
|
|
import * as types from './types'
|
|
|
|
export const getSiteForDomain = async (
|
|
domain: string
|
|
): Promise<types.Site | null> => {
|
|
return {
|
|
domain,
|
|
name: config.siteName,
|
|
rootNotionPageId: config.notionRootPageId,
|
|
description: config.siteDesc,
|
|
image: config.siteImage
|
|
} as types.Site
|
|
}
|