Skip to content

Commit 06f93bd

Browse files
committed
add
1 parent 003653b commit 06f93bd

File tree

3 files changed

+3310
-2550
lines changed

3 files changed

+3310
-2550
lines changed

next.config.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

next.config.mjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import createMDX from '@next/mdx';
2+
import remarkGfm from 'remark-gfm';
3+
import rehypeSlug from 'rehype-slug';
4+
import rehypeHighlight from 'rehype-highlight';
5+
6+
/** @type {import('next').NextConfig} */
7+
const nextConfig = {
8+
reactStrictMode: true,
9+
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
10+
images: {
11+
domains: ['golang.org'],
12+
unoptimized: true,
13+
dangerouslyAllowSVG: true,
14+
},
15+
output: 'export',
16+
// If your repository name is 'golangmastery.githhub.io', basePath and assetPrefix are usually not needed
17+
// when deploying to USERNAME.github.io/REPOSITORY_NAME if REPOSITORY_NAME is the same as in the URL.
18+
// However, if deploying to a custom domain or the root USERNAME.github.io, they are not needed.
19+
// assetPrefix: process.env.NODE_ENV === 'production' ? '/golangmastery.githhub.io' : undefined,
20+
// basePath: process.env.NODE_ENV === 'production' ? '/golangmastery.githhub.io' : undefined,
21+
};
22+
23+
const withMDX = createMDX({
24+
extension: /\.mdx?$/,
25+
options: {
26+
remarkPlugins: [remarkGfm],
27+
rehypePlugins: [rehypeSlug, rehypeHighlight],
28+
providerImportSource: "@mdx-js/react",
29+
},
30+
});
31+
32+
export default withMDX(nextConfig);

0 commit comments

Comments
 (0)