-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.ts
36 lines (33 loc) · 907 Bytes
/
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
import { NextConfig } from "next"
/**
* @type {import("next").NextConfig}
* @see https://nextjs.org/docs/api-reference/next.config.js/introduction
**/
const nextConfig: NextConfig = {
reactStrictMode: true,
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
ignoreBuildErrors: true,
},
webpack: (config, options) => {
config.module.rules.push({
test: /\.(ts)x?$/, // Just `tsx?` file only
use: [
// options.defaultLoaders.babel, I don't think it's necessary to have this loader too
{
loader: "ts-loader",
options: {
transpileOnly: true,
experimentalWatchApi: true,
onlyCompileBundledFiles: true,
},
},
],
})
return config
},
}
module.exports = nextConfig