(isProd: boolean, hostname: string | null)
| 4 | import { isBot } from './getBot'; |
| 5 | |
| 6 | export const getCommunityName = (isProd: boolean, hostname: string | null) => { |
| 7 | if (isProd) { |
| 8 | return hostname?.replace(`.linen.dev`, '').replace(`*.linene.dev`, ''); |
| 9 | } |
| 10 | return hostname?.replace(`.localhost:3000`, '') || ''; |
| 11 | }; |
| 12 | |
| 13 | const IS_PRODUCTION = process.env.NODE_ENV === 'production'; |
| 14 | // const PAGES = [ |
no outgoing calls
no test coverage detected