chore: experiment with vercel deployment / pino error
This commit is contained in:
parent
32c4be2742
commit
86bf05f4d1
@ -1,6 +1,84 @@
|
||||
import withPayload from "@payloadcms/next/withPayload";
|
||||
/** @type {import('next').NextConfig} */ const withPayload = (nextConfig = {}) => {
|
||||
return {
|
||||
...nextConfig,
|
||||
experimental: {
|
||||
...(nextConfig?.experimental || {}),
|
||||
outputFileTracingExcludes: {
|
||||
'**/*': [
|
||||
...(nextConfig.experimental?.outputFileTracingExcludes?.['**/*'] || []),
|
||||
'drizzle-kit',
|
||||
'drizzle-kit/payload',
|
||||
'libsql',
|
||||
],
|
||||
},
|
||||
serverComponentsExternalPackages: [
|
||||
...(nextConfig?.experimental?.serverComponentsExternalPackages || []),
|
||||
'drizzle-kit',
|
||||
'drizzle-kit/payload',
|
||||
'libsql',
|
||||
'pino',
|
||||
'pino-pretty',
|
||||
],
|
||||
},
|
||||
webpack: (webpackConfig, webpackOptions) => {
|
||||
const incomingWebpackConfig =
|
||||
typeof nextConfig.webpack === 'function'
|
||||
? nextConfig.webpack(webpackConfig, webpackOptions)
|
||||
: webpackConfig
|
||||
return {
|
||||
...incomingWebpackConfig,
|
||||
externals: [
|
||||
...(incomingWebpackConfig?.externals || []),
|
||||
'drizzle-kit',
|
||||
'drizzle-kit/payload',
|
||||
'sharp',
|
||||
'libsql',
|
||||
],
|
||||
ignoreWarnings: [
|
||||
...(incomingWebpackConfig?.ignoreWarnings || []),
|
||||
{
|
||||
module: /node_modules\/mongodb\/lib\/utils\.js/,
|
||||
},
|
||||
{
|
||||
file: /node_modules\/mongodb\/lib\/utils\.js/,
|
||||
},
|
||||
{
|
||||
module: /node_modules\/mongodb\/lib\/bson\.js/,
|
||||
},
|
||||
{
|
||||
file: /node_modules\/mongodb\/lib\/bson\.js/,
|
||||
},
|
||||
],
|
||||
resolve: {
|
||||
...(incomingWebpackConfig?.resolve || {}),
|
||||
alias: {
|
||||
...(incomingWebpackConfig?.resolve?.alias || {}),
|
||||
},
|
||||
fallback: {
|
||||
...(incomingWebpackConfig?.resolve?.fallback || {}),
|
||||
'@aws-sdk/credential-providers': false,
|
||||
'@mongodb-js/zstd': false,
|
||||
aws4: false,
|
||||
kerberos: false,
|
||||
'mongodb-client-encryption': false,
|
||||
snappy: false,
|
||||
'supports-color': false,
|
||||
'yocto-queue': false,
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=withPayload.js.map
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {};
|
||||
const nextConfig = {
|
||||
// experimental: {
|
||||
// outputFileTracingIncludes: {
|
||||
// pino: ['./node_modules/pino'],
|
||||
// },
|
||||
// },
|
||||
}
|
||||
|
||||
export default withPayload(nextConfig);
|
||||
export default withPayload(nextConfig)
|
||||
|
Loading…
Reference in New Issue
Block a user