File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1+ import { PrismaPlugin } from '@prisma/nextjs-monorepo-workaround-plugin' ;
12import { withBotId } from 'botid/next/config' ;
23import type { NextConfig } from 'next' ;
34import path from 'path' ;
5+
46import './src/env.mjs' ;
57
68const isStandalone = process . env . NEXT_OUTPUT_STANDALONE === 'true' ;
79
810const config : NextConfig = {
11+ webpack : ( config , { isServer } ) => {
12+ if ( isServer ) {
13+ // Very important, DO NOT REMOVE, it's needed for Prisma to work in the server bundle
14+ config . plugins = [ ...config . plugins , new PrismaPlugin ( ) ] ;
15+ }
16+
17+ return config ;
18+ } ,
919 // Use S3 bucket for static assets with app-specific path
1020 assetPrefix :
1121 process . env . NODE_ENV === 'production' && process . env . STATIC_ASSETS_URL
You can’t perform that action at this time.
0 commit comments