From 1dfe4cadf7ab8e01c9f330765459efa66ad12103 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Tue, 31 Jan 2023 21:05:11 +0100 Subject: [PATCH] :ambulance: Revert prisma fix --- .npmrc | 1 + Dockerfile | 2 +- apps/builder/next.config.js | 7 ------- apps/landing-page/next.config.js | 7 ------- apps/viewer/next.config.js | 7 ------- 5 files changed, 2 insertions(+), 22 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..39c9b231b --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +public-hoist-pattern[]=*prisma* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e0872a174..8eb1fd68e 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 dee70ffdf..8d05f4cc7 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 2903d9c68..0b05c3251 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 7076c2a82..262a91d41 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 = {