-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnext.config.js
38 lines (36 loc) · 1.45 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
30
31
32
33
34
35
36
37
38
const { withPlausibleProxy } = require("next-plausible");
const { startTransition } = require("react");
const { validateLocaleAndSetLanguage } = require("typescript");
/** @type {import('next').NextConfig} */
const nextConfig = withPlausibleProxy()({
reactStrictMode: true,
swcMinify: true,
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
}
return config;
},
rewrites: async () => {
return [
{ source: "/", destination: "/search" },
{ source: "/general", destination: "/search?category=general" },
{ source: "/music", destination: "/search?category=music" },
{ source: "/venture", destination: "/search?category=venture" },
{ source: "/lens", destination: "/search?category=lens" },
{ source: "/events", destination: "/search?category=events" },
{ source: "/new", destination: "/search?category=new" },
{ source: "/identity", destination: "/search?category=identity" },
{ source: "/dao", destination: "/search?category=dao" },
{ source: "/defi", destination: "/search?category=defi" },
{ source: "/zk", destination: "/search?category=zk" },
{ source: "/impactdao", destination: "/search?category=impactdao" },
{ source: "/daotool", destination: "/search?category=daotool" },
{
source: "/infrastructure",
destination: "/search?category=infrastructure",
},
];
},
});
module.exports = nextConfig;