diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000..39c9b231b3 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +public-hoist-pattern[]=*prisma* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e0872a1749..8eb1fd68eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm --global install pnpm FROM base AS builder RUN apt-get -qy update && apt-get -qy --no-install-recommends install openssl git -COPY pnpm-lock.yaml pnpm-workspace.yaml ./ +COPY pnpm-lock.yaml .npmrc pnpm-workspace.yaml ./ RUN pnpm fetch ADD . ./ RUN pnpm install -r --offline diff --git a/apps/builder/next.config.js b/apps/builder/next.config.js index dee70ffdf7..8d05f4cc72 100644 --- a/apps/builder/next.config.js +++ b/apps/builder/next.config.js @@ -14,13 +14,6 @@ const nextConfig = withTM({ experimental: { outputFileTracingRoot: path.join(__dirname, '../../'), }, - webpack: (config, { isServer }) => { - if (isServer) { - config.externals = [...config.externals, '@prisma/client'] - } - - return config - }, headers: async () => { return [ { diff --git a/apps/landing-page/next.config.js b/apps/landing-page/next.config.js index 2903d9c680..0b05c32512 100644 --- a/apps/landing-page/next.config.js +++ b/apps/landing-page/next.config.js @@ -7,13 +7,6 @@ const pages = ['pricing', 'privacy-policies', 'terms-of-service', 'about'] module.exports = withBundleAnalyzer({ transpilePackages: ['utils', 'models'], - webpack: (config, { isServer }) => { - if (isServer) { - config.externals = [...config.externals, '@prisma/client'] - } - - return config - }, async redirects() { return [ { diff --git a/apps/viewer/next.config.js b/apps/viewer/next.config.js index 7076c2a823..262a91d41b 100644 --- a/apps/viewer/next.config.js +++ b/apps/viewer/next.config.js @@ -14,13 +14,6 @@ const nextConfig = withTM({ experimental: { outputFileTracingRoot: path.join(__dirname, '../../'), }, - webpack: (config, { isServer }) => { - if (isServer) { - config.externals = [...config.externals, '@prisma/client'] - } - - return config - }, }) const sentryWebpackPluginOptions = {