-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.ts
91 lines (87 loc) · 2.17 KB
/
next.config.ts
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// import withBundleAnalyzer from '@next/bundle-analyzer'
import type { NextConfig } from 'next'
// import createMDX from '@next/mdx'
// import remarkGfm from 'remark-gfm'
// import rehypeRaw from 'rehype-raw'
// import rehypePrettyCode from "rehype-pretty-code";
// withBundleAnalyzer({
// enabled: process.env.ANALYZE === 'true'
// })
// const withBundleAnalyzer = require('@next/bundle-analyzer')({
// enabled: process.env.ANALYZE === 'true',
// })
const nextConfig: NextConfig = {
reactStrictMode: true,
// experimental: {
// dynamicIO: true
// },
logging: {
fetches: {
fullUrl: true
}
}
// experimental: {
// optimizePackageImports: ['@nextui-org'],
// turbo: {
// rules: {
// '*.md': [
// {
// loader: '@mdx-js/loader',
// options: {
// format: 'md',
// },
// },
// ]
// }
// }
// },
// webpack: (config, options) => {
// config.module.noParse = [require.resolve('typescript/lib/typescript.js')]
// return config
// },
// generateBuildId: async () => {
// return nextBuildId
// },
// images: {
// domains: ['ddragon.leagueoflegends.com']
// remotePatterns: [
// {
// protocol: 'http',
// hostname: 'ddragon.leagueoflegends.com',
// port: '',
// pathname: '/lol/**',
// },
// {
// protocol: 'https',
// hostname: 'ddragon.leagueoflegends.com',
// port: '',
// pathname: '/lol/**',
// }
// ],
// },
// async redirects() {
// return [
// {
// source: '/web-builder/project/:slug',
// destination: '/web-builder/sign-in',
// permanent: true
// },
// {
// source: '/web-builder/project/:slug',
// destination: '/web-builder/sign-up',
// permanent: true
// }
// ]
// }
// pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx']
}
// const withMDX = createMDX({
// // Add markdown plugins here, as desired
// options: {
// remarkPlugins: [],
// rehypePlugins: [rehypePrettyCode]
// }
// })
// export default withBundleAnalyzer(nextConfig);
// export default withMDX(nextConfig)
export default nextConfig