-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.ts
44 lines (43 loc) · 1.13 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
import type { NextConfig } from 'next';
import withMDX from '@next/mdx';
import remarkGFM from 'remark-gfm';
const nextConfig: NextConfig = {
output: "export",
reactStrictMode: false,
pageExtensions: ['mdx', 'tsx'],
trailingSlash: true,
eslint: {
ignoreDuringBuilds: false,
},
typescript: {
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
ignoreBuildErrors: false,
},
webpack(config) {
// Ensures that web workers can import scripts.
config.output.publicPath = "/_next/";
// https://github.com/wojtekmaj/react-pdf
config.resolve.alias.canvas = false;
// From https://github.com/rustwasm/wasm-pack/issues/835#issuecomment-772591665
config.experiments = {
...config.experiments,
syncWebAssembly: true
};
config.module.rules.push({
test: /\.wasm$/,
type: "webassembly/sync",
});
config.module.rules.push({
test: /\.glsl/,
type: "asset/source",
});
return config;
},
};
const final = withMDX({
options: {
remarkPlugins: [remarkGFM]
}
})(nextConfig);
export default final