Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add nextjs-monorepo-workaround-plugin

Kiran K3ae7f5a950a2
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 1f3673be8b..bffc732310 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -1,3 +1,6 @@
+const { PrismaPlugin } = require("@prisma/nextjs-monorepo-workaround-plugin");
+const { withAxiom } = require("next-axiom");
+
const REDIRECT_SEGMENTS = [
"pricing",
"blog",
@@ -7,8 +10,6 @@ const REDIRECT_SEGMENTS = [
"_static",
];
-const { withAxiom } = require("next-axiom");
-
/** @type {import('next').NextConfig} */
module.exports = withAxiom({
reactStrictMode: false,
@@ -29,6 +30,8 @@ module.exports = withAxiom({
/(^@google-cloud\/spanner|^@mongodb-js\/zstd|^aws-crt|^aws4$|^pg-native$|^mongodb-client-encryption$|^@sap\/hana-client$|^@sap\/hana-client\/extension\/Stream$|^snappy$|^react-native-sqlite-storage$|^bson-ext$|^cardinal$|^kerberos$|^hdb-pool$|^sql.js$|^sqlite3$|^better-sqlite3$|^ioredis$|^typeorm-aurora-data-api-driver$|^pg-query-stream$|^oracledb$|^mysql$|^snappy\/package\.json$|^cloudflare:sockets$)/,
}),
);
+
+ config.plugins = [...config.plugins, new PrismaPlugin()];
}
config.module = {
diff --git a/apps/web/package.json b/apps/web/package.json
index ed1d51ec8a..aa77a26054 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -119,7 +119,8 @@
"zod": "^3.22.4",
"zod-error": "^1.5.0",
"zod-openapi": "^2.19.0",
- "@prisma/client": "5.18.0"
+ "@prisma/client": "5.18.0",
+ "@prisma/nextjs-monorepo-workaround-plugin": "^6.0.1"
},
"devDependencies": {
"@types/he": "^1.2.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index da76732b8f..0d67506400 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -78,6 +78,9 @@ importers:
'@prisma/client':
specifier: 5.18.0
version: 5.18.0([email protected])
+ '@prisma/nextjs-monorepo-workaround-plugin':
+ specifier: ^6.0.1
+ version: 6.0.1
'@radix-ui/react-hover-card':
specifier: ^1.1.1
@@ -5547,6 +5550,10 @@ packages:
dependencies:
'@prisma/debug': 5.18.0
+ /@prisma/[email protected]:
+ resolution: {integrity: sha512-7GCiwVbIyF2mO0qL0e0BMHc1wQJEuXg61EcRXt6rWtFtxQEXQc2Hl839WQ89jrNmsEPYH9UCFyJ9hP5AhbA+9w==}
+ dev: false
+
/@protobufjs/[email protected]:
resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
dev: false