2
0

🚑 Revert prisma fix

This commit is contained in:
Baptiste Arnaud
2023-01-31 21:05:11 +01:00
parent 58ca1c3ad6
commit 1dfe4cadf7
5 changed files with 2 additions and 22 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
public-hoist-pattern[]=*prisma*

View File

@ -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

View File

@ -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 [
{

View File

@ -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 [
{

View File

@ -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 = {