This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-17 09:49:18 +02:00
committed by Carl-Gerhard Lindesvärd
parent 170250d4d0
commit ac84adf1a4
3 changed files with 18 additions and 0 deletions

View File

@@ -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',