-
Notifications
You must be signed in to change notification settings - Fork 53
/
next.config.js
29 lines (27 loc) · 1.09 KB
/
next.config.js
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
const isProd = process.env.NODE_ENV === "production";
// const withTM = require("next-transpile-modules")(["seqviz", "../seqviz"]); // pass the modules you would like to see transpiled
module.exports = {
// Use the CDN in production and localhost for development.
// https://nextjs.org/docs/api-reference/next.config.js/cdn-support-with-asset-prefix
assetPrefix: isProd ? "https://tools.latticeautomation.com/seqviz" : undefined,
// https://github.com/vercel/next.js/issues/33488#issuecomment-1063677133
images: isProd
? {
domains: ["https://tools.latticeautomation.com/seqviz"],
path: "https://tools.latticeautomation.com/seqviz",
}
: undefined,
experimental: {
externalDir: true,
},
reactStrictMode: true,
typescript: {
// !! WARN !!
// Dangerously allow production builds to successfully complete even if
// your project has type errors.
// !! WARN !!
// ../src/Circular/Annotations.tsx:179:9
// Type error: Type 'Properties<0 | (string & {}), string & {}>' is not assignable to type 'CSSProperties'.
ignoreBuildErrors: true,
},
};