-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
33 lines (30 loc) · 858 Bytes
/
next.config.mjs
File metadata and controls
33 lines (30 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { fileURLToPath } from 'url';
import createMDX from '@next/mdx';
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
cacheHandler:
process.env.NODE_ENV === 'production'
? fileURLToPath(import.meta.resolve('./cache-handler.mjs'))
: undefined,
cacheMaxMemorySize: process.env.NODE_ENV === 'production' ? 0 : undefined,
reactStrictMode: true,
staticPageGenerationTimeout: 360,
productionBrowserSourceMaps: true,
trailingSlash: true,
images: {
unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: 'assets.opensanctions.org',
},
{
protocol: 'https',
hostname: 'opensanctions.directus.app',
},
],
},
};
const withMDX = createMDX({});
export default withMDX(nextConfig);