fix: dynamic adapter imports not working in self-hosted instances (#23784)

* export const CalendarServiceMap

* fix: resolve linting issues in video and calendar adapter fixes

- Remove unused isCalendarService function
- Fix any type usage in getCalendar
- Add eslint-disable for necessary app-store imports in videoClient
- Maintain architectural separation while fixing core functionality

* revert

---------

Co-authored-by: unknown <[email protected]>
This commit is contained in:
Neha Prasadandunknown authored and GitHub committed 2025-09-12 19:02:17 +00:00
1 parent 68f2fc9174
commit 5230694e2c
4 files changed
+41 -38

No files matched your search

+3 -3
View File
@@ -377,7 +377,7 @@ function generateFiles() {
calendarOutput.push(
exportLine.replace(
"export const CalendarServiceMap = {",
"export const CalendarServiceMap = process.env.NEXT_PUBLIC_IS_E2E ? {} : {"
"export const CalendarServiceMap = process.env.NEXT_PUBLIC_IS_E2E === '1' ? {} : {"
),
...objectContent,
"};"
@@ -414,7 +414,7 @@ function generateFiles() {
analyticsOutput.push(
exportLine.replace(
"export const AnalyticsServiceMap = {",
"export const AnalyticsServiceMap = process.env.NEXT_PUBLIC_IS_E2E ? {} : {"
"export const AnalyticsServiceMap = process.env.NEXT_PUBLIC_IS_E2E === '1' ? {} : {"
),
...objectContent,
"};"
@@ -466,7 +466,7 @@ function generateFiles() {
videoOutput.push(
exportLine.replace(
"export const VideoApiAdapterMap = {",
"export const VideoApiAdapterMap = process.env.NEXT_PUBLIC_IS_E2E ? {} : {"
"export const VideoApiAdapterMap = process.env.NEXT_PUBLIC_IS_E2E === '1' ? {} : {"
),
...objectContent,
"};"