2
0

🩹 Better fix for ENOENT schema.prisma

This commit is contained in:
Baptiste Arnaud
2023-01-31 08:29:10 +01:00
parent 58c6efc5c8
commit 3851b2d70b
6 changed files with 1148 additions and 1163 deletions

View File

@ -14,6 +14,13 @@ 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,6 +7,13 @@ 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,6 +14,13 @@ const nextConfig = withTM({
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
webpack: (config, { isServer }) => {
if (isServer) {
config.externals = [...config.externals, '@prisma/client']
}
return config
},
})
const sentryWebpackPluginOptions = {