-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathnext.config.mjs
More file actions
30 lines (24 loc) · 766 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
30 lines (24 loc) · 766 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
import createMDX from '@next/mdx';
import remarkGfm from 'remark-gfm';
import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['lh3.googleusercontent.com'],
},
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
webpack: (config) => {
// Ref: https://github.com/vercel/next.js/discussions/52593
config.resolve.alias['handlebars'] = 'handlebars/dist/handlebars.min.js';
return config;
},
};
const withMDX = createMDX({
// Add markdown plugins here, as desired
options: {
remarkPlugins: [remarkGfm],
},
});
// Merge MDX config with Next.js config
export default withMDX(withNextIntl(nextConfig));