diff --git a/admin/next.config.js b/admin/next.config.js index 2109cec69..421f645e8 100644 --- a/admin/next.config.js +++ b/admin/next.config.js @@ -9,6 +9,19 @@ const nextConfig = { unoptimized: true, }, basePath: process.env.NEXT_PUBLIC_ADMIN_BASE_PATH || "", + transpilePackages: [ + "@plane/constants", + "@plane/editor", + "@plane/hooks", + "@plane/i18n", + "@plane/logger", + "@plane/propel", + "@plane/services", + "@plane/shared-state", + "@plane/types", + "@plane/ui", + "@plane/utils", + ], }; module.exports = nextConfig; diff --git a/space/next.config.js b/space/next.config.js index 58b6cfa0b..aabd70cb4 100644 --- a/space/next.config.js +++ b/space/next.config.js @@ -1,7 +1,9 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires /* eslint-disable @typescript-eslint/no-var-requires */ /** @type {import('next').NextConfig} */ +// eslint-disable-next-line @typescript-eslint/no-require-imports require("dotenv").config({ path: ".env" }); +// eslint-disable-next-line @typescript-eslint/no-require-imports const { withSentryConfig } = require("@sentry/nextjs"); const nextConfig = { @@ -27,6 +29,19 @@ const nextConfig = { ], unoptimized: true, }, + transpilePackages: [ + "@plane/constants", + "@plane/editor", + "@plane/hooks", + "@plane/i18n", + "@plane/logger", + "@plane/propel", + "@plane/services", + "@plane/shared-state", + "@plane/types", + "@plane/ui", + "@plane/utils", + ], }; const sentryConfig = { diff --git a/web/next.config.js b/web/next.config.js index 8422342b6..7f83ec742 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -1,5 +1,6 @@ /* eslint-disable @typescript-eslint/no-var-requires */ /** @type {import("next").NextConfig} */ +// eslint-disable-next-line @typescript-eslint/no-require-imports require("dotenv").config({ path: ".env" }); const nextConfig = {