mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
23 lines
618 B
JavaScript
23 lines
618 B
JavaScript
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: process.env.ANALYZE === 'true'
|
|
})
|
|
|
|
module.exports = withBundleAnalyzer({
|
|
staticPageGenerationTimeout: 300,
|
|
images: {
|
|
domains: [
|
|
'www.notion.so',
|
|
'notion.so',
|
|
'images.unsplash.com',
|
|
'pbs.twimg.com',
|
|
'abs.twimg.com',
|
|
's3.us-west-2.amazonaws.com',
|
|
'transitivebullsh.it'
|
|
],
|
|
formats: ['image/avif', 'image/webp'],
|
|
dangerouslyAllowSVG: true,
|
|
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;"
|
|
}
|
|
})
|