Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit bdfe8e1

Browse files
committed
chore: bump to prisma 5.17 and add optimize
1 parent 6208a97 commit bdfe8e1

File tree

7 files changed

+619
-14
lines changed

7 files changed

+619
-14
lines changed

apps/marketing/next.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const path = require('path');
44
const { withContentlayer } = require('next-contentlayer');
55
const { withAxiom } = require('next-axiom');
66

7+
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin');
8+
79
const ENV_FILES = ['.env', '.env.local', `.env.${process.env.NODE_ENV || 'development'}`];
810

911
ENV_FILES.forEach((file) => {
@@ -25,6 +27,7 @@ const FONT_NOTO_SANS_BYTES = fs.readFileSync(
2527
/** @type {import('next').NextConfig} */
2628
const config = {
2729
experimental: {
30+
instrumentationHook: true,
2831
outputFileTracingRoot: path.join(__dirname, '../../'),
2932
serverComponentsExternalPackages: ['@node-rs/bcrypt', '@documenso/pdf-sign', 'playwright'],
3033
serverActions: {
@@ -53,6 +56,7 @@ const config = {
5356
// fixes: Module not found: Can’t resolve ‘../build/Release/canvas.node’
5457
if (isServer) {
5558
config.resolve.alias.canvas = false;
59+
config.plugins = [...config.plugins, new PrismaPlugin()];
5660
}
5761

5862
return config;

apps/web/next.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const path = require('path');
44
const { version } = require('./package.json');
55
const { withAxiom } = require('next-axiom');
66

7+
const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin');
8+
79
const ENV_FILES = ['.env', '.env.local', `.env.${process.env.NODE_ENV || 'development'}`];
810

911
ENV_FILES.forEach((file) => {
@@ -26,6 +28,7 @@ const FONT_NOTO_SANS_BYTES = fs.readFileSync(
2628
const config = {
2729
output: process.env.DOCKER_OUTPUT ? 'standalone' : undefined,
2830
experimental: {
31+
instrumentationHook: true,
2932
outputFileTracingRoot: path.join(__dirname, '../../'),
3033
serverComponentsExternalPackages: ['@node-rs/bcrypt', '@documenso/pdf-sign', 'playwright'],
3134
serverActions: {
@@ -57,6 +60,7 @@ const config = {
5760
// fixes: Module not found: Can’t resolve ‘../build/Release/canvas.node’
5861
if (isServer) {
5962
config.resolve.alias.canvas = false;
63+
config.plugins = [...config.plugins, new PrismaPlugin()];
6064
}
6165

6266
return config;

0 commit comments

Comments
 (0)