Files
nextjs-notion-starter-kit/next.config.js
2022-03-24 01:01:18 -04:00

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']
}
})