forked from jcllobet/ivyhacks
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
38 lines (34 loc) · 774 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
38 lines (34 loc) · 774 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
34
35
36
37
38
/** @type {import('next').NextConfig} */
import remarkGfm from 'remark-gfm'
import nextMdx from '@next/mdx'
const nextConfig = {
pageExtensions: ['js', 'jsx', 'mdx', 'md', 'ts', 'tsx'],
// Optionally, add any other Next.js config below
// output: "export", // Will export all routes as static html
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'images.lumacdn.com',
},
],
},
redirects: async () => {
return [
{
source: '/',
destination: '/en',
permanent: false,
},
]
}
}
const withMDX = nextMdx({
extension: /\.mdx?$|\.md$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
},
})
export default withMDX(nextConfig)