Initial commit with 🏗️ Scaffold-ETH 2 @ 1.0.5
This commit is contained in:
30
packages/nextjs/next.config.ts
Normal file
30
packages/nextjs/next.config.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
reactStrictMode: true,
|
||||
devIndicators: false,
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
webpack: config => {
|
||||
config.resolve.fallback = { fs: false, net: false, tls: false };
|
||||
config.externals.push("pino-pretty", "lokijs", "encoding");
|
||||
return config;
|
||||
},
|
||||
serverExternalPackages: ["ipfs-utils"],
|
||||
};
|
||||
|
||||
const isIpfs = process.env.NEXT_PUBLIC_IPFS_BUILD === "true";
|
||||
|
||||
if (isIpfs) {
|
||||
nextConfig.output = "export";
|
||||
nextConfig.trailingSlash = true;
|
||||
nextConfig.images = {
|
||||
unoptimized: true,
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = nextConfig;
|
||||
Reference in New Issue
Block a user