OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
prisma
Carl-Gerhard Lindesvärdac84adf1a4dc
diff --git a/apps/dashboard/next.config.mjs b/apps/dashboard/next.config.mjsindex ec832a13c..f9d3a95dd 100644--- a/apps/dashboard/next.config.mjs+++ b/apps/dashboard/next.config.mjs@@ -1,3 +1,6 @@+// @ts-expect-error+import { PrismaPlugin } from '@prisma/nextjs-monorepo-workaround-plugin';+/*** Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful* for Docker builds.@@ -6,6 +9,13 @@ await import('./src/env.mjs');/** @type {import("next").NextConfig} */const config = {+ webpack: (config, { isServer }) => {+ if (isServer) {+ config.plugins = [...config.plugins, new PrismaPlugin()];+ }++ return config;+ },reactStrictMode: true,transpilePackages: ['@openpanel/queue',diff --git a/apps/dashboard/package.json b/apps/dashboard/package.jsonindex 8a6e357bc..af3ee3d22 100644--- a/apps/dashboard/package.json+++ b/apps/dashboard/package.json@@ -107,6 +107,7 @@"@openpanel/eslint-config": "workspace:*","@openpanel/prettier-config": "workspace:*","@openpanel/tsconfig": "workspace:*",+ "@prisma/nextjs-monorepo-workaround-plugin": "^5.12.1","@types/bcrypt": "^5.0.2","@types/lodash.debounce": "^4.0.9","@types/lodash.throttle": "^4.1.9",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex eefa7ebbf..a6a14cf71 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -406,6 +406,9 @@ importers:'@openpanel/tsconfig':specifier: workspace:*version: link:../../tooling/typescript+ '@prisma/nextjs-monorepo-workaround-plugin':+ specifier: ^5.12.1+ version: 5.12.1'@types/bcrypt':specifier: ^5.0.2version: 5.0.2@@ -4650,6 +4653,10 @@ packages:dependencies:'@prisma/debug': 5.9.1+ /@prisma/[email protected]:+ resolution: {integrity: sha512-ISYeAIY2x8riGhpgDqlupqqkqgJe2ksQm4yVH01afQ/7hp7fjPLcEXbDjEYuuloXJgnbvkcN6GXcD3v5hiq85A==}+ dev: true+/@radix-ui/[email protected]:resolution: {integrity: sha512-T5gIdVO2mmPW3NNhjNgEP3cqMXjXL9UbO0BzWcXfvdBs+BohbQxvd/K5hSVKmn9/lbTdsQVKbUcP5WLCwvUbBg==}dependencies: