@@ -102,7 +102,7 @@ export const withPayload = (nextConfig = {}, options = {}) => {
102
102
'pino-pretty' ,
103
103
'graphql' ,
104
104
// Do not bundle server-only packages during dev to improve compile speed
105
- ...( process . env . npm_lifecycle_event === 'dev ' && options . devBundleServerPackages === false
105
+ ...( process . env . NODE_ENV === 'development ' && options . devBundleServerPackages === false
106
106
? [
107
107
'payload' ,
108
108
'@payloadcms/db-mongodb' ,
@@ -114,11 +114,11 @@ export const withPayload = (nextConfig = {}, options = {}) => {
114
114
'@payloadcms/email-resend' ,
115
115
'@payloadcms/graphql' ,
116
116
'@payloadcms/payload-cloud' ,
117
- '@payloadcms/plugin-cloud-storage' ,
118
117
'@payloadcms/plugin-redirects' ,
119
- '@payloadcms/plugin-sentry' ,
120
- '@payloadcms/plugin-stripe' ,
121
118
// TODO: Add the following packages, excluding their /client subpath exports, once Next.js supports it
119
+ //'@payloadcms/plugin-cloud-storage',
120
+ //'@payloadcms/plugin-sentry',
121
+ //'@payloadcms/plugin-stripe',
122
122
// @payloadcms /richtext-lexical
123
123
//'@payloadcms/storage-azure',
124
124
//'@payloadcms/storage-gcs',
0 commit comments