-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathnext.config.mjs
47 lines (45 loc) · 1.22 KB
/
next.config.mjs
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
45
46
47
// This ensure env vars are validated at build-time
// See: https://env.t3.gg/docs/nextjs
import "./env.mjs";
/** @type {import("next").NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
// typedRoutes: true, // Enable internal link type-checking (see: https://nextjs.org/docs/pages/building-your-application/configuring/typescript#statically-typed-links)
},
// Require by Wagmi work in Next.js client components
webpack: (config, { dev }) => {
if (dev) {
config.devtool = "eval-source-map"; // This is more reliable than 'source-map'
}
config.resolve.fallback = { fs: false, net: false, tls: false };
// config.externals.push("pino-pretty", "lokijs", "encoding");
return config;
},
images: {
remotePatterns: [
// Required to load ENS avatars
{
protocol: "https",
hostname: "euc.li",
port: "",
},
// Required to load Twitter profile pics
{
protocol: "https",
hostname: "pbs.twimg.com",
port: "",
},
],
},
async redirects() {
return [
{
source: "/app",
destination: "/app/invest",
permanent: true,
},
];
},
};
export default nextConfig;