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

Commit

Permalink
fix(chore): merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrell committed Aug 4, 2024
2 parents 909c38f + 98ea0ba commit 835ded9
Show file tree
Hide file tree
Showing 16 changed files with 3,686 additions and 8,162 deletions.
4 changes: 4 additions & 0 deletions apps/marketing/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const path = require('path');
const { withContentlayer } = require('next-contentlayer');
const { withAxiom } = require('next-axiom');

const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin');

const ENV_FILES = ['.env', '.env.local', `.env.${process.env.NODE_ENV || 'development'}`];

ENV_FILES.forEach((file) => {
Expand All @@ -25,6 +27,7 @@ const FONT_NOTO_SANS_BYTES = fs.readFileSync(
/** @type {import('next').NextConfig} */
const config = {
experimental: {
instrumentationHook: true,
outputFileTracingRoot: path.join(__dirname, '../../'),
serverComponentsExternalPackages: ['@node-rs/bcrypt', '@documenso/pdf-sign', 'playwright'],
serverActions: {
Expand Down Expand Up @@ -54,6 +57,7 @@ const config = {
// fixes: Module not found: Can’t resolve ‘../build/Release/canvas.node’
if (isServer) {
config.resolve.alias.canvas = false;
config.plugins = [...config.plugins, new PrismaPlugin()];
}

config.module.rules.push({
Expand Down
4 changes: 4 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const path = require('path');
const { version } = require('./package.json');
const { withAxiom } = require('next-axiom');

const { PrismaPlugin } = require('@prisma/nextjs-monorepo-workaround-plugin');

const ENV_FILES = ['.env', '.env.local', `.env.${process.env.NODE_ENV || 'development'}`];

ENV_FILES.forEach((file) => {
Expand All @@ -26,6 +28,7 @@ const FONT_NOTO_SANS_BYTES = fs.readFileSync(
const config = {
output: process.env.DOCKER_OUTPUT ? 'standalone' : undefined,
experimental: {
instrumentationHook: true,
outputFileTracingRoot: path.join(__dirname, '../../'),
serverComponentsExternalPackages: ['@node-rs/bcrypt', '@documenso/pdf-sign', 'playwright'],
serverActions: {
Expand Down Expand Up @@ -58,6 +61,7 @@ const config = {
// fixes: Module not found: Can’t resolve ‘../build/Release/canvas.node’
if (isServer) {
config.resolve.alias.canvas = false;
config.plugins = [...config.plugins, new PrismaPlugin()];
}

config.module.rules.push({
Expand Down
Loading

0 comments on commit 835ded9

Please sign in to comment.