mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
15 lines
359 B
TypeScript
15 lines
359 B
TypeScript
import * as config from './config'
|
|
import * as types from './types'
|
|
|
|
export const getSiteForDomain = async (
|
|
domain: string
|
|
): Promise<types.Site | null> => {
|
|
return {
|
|
domain,
|
|
name: config.name,
|
|
rootNotionPageId: config.rootNotionPageId,
|
|
rootNotionSpaceId: config.rootNotionSpaceId,
|
|
description: config.description
|
|
} as types.Site
|
|
}
|