mirror of
https://github.com/luxfhe/example-redact.git
synced 2026-10-30 18:13:20 +00:00
33 lines
764 B
JavaScript
33 lines
764 B
JavaScript
// @ts-check
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
typescript: {
|
|
ignoreBuildErrors: process.env.NEXT_PUBLIC_IGNORE_BUILD_ERROR === "true",
|
|
},
|
|
eslint: {
|
|
ignoreDuringBuilds: process.env.NEXT_PUBLIC_IGNORE_BUILD_ERROR === "true",
|
|
},
|
|
images: {
|
|
domains: ["assets.coingecko.com"],
|
|
},
|
|
webpack: config => {
|
|
config.resolve.fallback = { fs: false, net: false, tls: false };
|
|
config.externals.push("pino-pretty", "lokijs", "encoding");
|
|
return config;
|
|
},
|
|
};
|
|
|
|
const isIpfs = process.env.NEXT_PUBLIC_IPFS_BUILD === "true";
|
|
|
|
if (isIpfs) {
|
|
nextConfig.output = "export";
|
|
nextConfig.trailingSlash = true;
|
|
nextConfig.images = {
|
|
unoptimized: true,
|
|
};
|
|
}
|
|
|
|
module.exports = nextConfig;
|