mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-17 23:16:45 +00:00
24 lines
571 B
JavaScript
24 lines
571 B
JavaScript
const withPlugins = require('next-compose-plugins')
|
|
// const withTM = require('next-transpile-modules')([
|
|
// 'react-notion-x',
|
|
// 'notion-client',
|
|
// 'notion-utils',
|
|
// 'notion-types'
|
|
// ])
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.ANALYZE === 'true'
|
|
})
|
|
|
|
module.exports = withPlugins([withBundleAnalyzer], {
|
|
staticPageGenerationTimeout: 300,
|
|
images: {
|
|
domains: [
|
|
'www.notion.so',
|
|
'notion.so',
|
|
'images.unsplash.com',
|
|
'pbs.twimg.com'
|
|
],
|
|
formats: ['image/avif', 'image/webp']
|
|
}
|
|
})
|