-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
2a2cb37
commit 41ba028
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import { PostHogEE } from './types' | ||
|
||
export default async (): Promise<PostHogEE> => { | ||
// eslint-disable-next-line import/no-restricted-paths | ||
return import('../../../ee/frontend/exports') | ||
.then((ee) => { | ||
return ee.default() | ||
}) | ||
.catch(() => { | ||
return { | ||
enabled: false, | ||
} | ||
}) | ||
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, | ||
} | ||
} | ||
} |
Binary file modified
BIN
+3 Bytes
(100%)
frontend/__snapshots__/scenes-app-sidepanels--side-panel-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters