0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
posthog/frontend/@posthog/ee/exports.ts
Paul D'Ambra 41ba028f7a
fix: copy EE frontend files during dockerfile build (#18951)
* fix: try different import mechanism

* dockerfile copy

* but without concatenation

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-29 12:58:10 +00:00

14 lines
348 B
TypeScript

import { PostHogEE } from './types'
export default async (): Promise<PostHogEE> => {
try {
// this has to import it...
// eslint-disable-next-line import/no-restricted-paths
return (await import('../../../ee/frontend/exports')).default()
} catch (e) {
return {
enabled: false,
}
}
}