-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
36 lines (34 loc) · 1011 Bytes
/
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
/** @type {import('next').NextConfig} */
const withTM = require("next-transpile-modules")([
"@spknetwork/auth-react",
"@spknetwork/hive-keychain-ceramic",
"@spknetwork/idx-data-utils",
]);
const config = {
reactStrictMode: true,
images: {
loader: "imgix",
},
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
return config;
},
exportPathMap: async function (
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {
return {
"/": { page: "/" },
"/inventory": { page: "/inventory" },
"/auction": { page: "/auction" },
"/create-nft": { page: "/create-nft" },
"/listings": { page: "/listings" },
"/trades": { page: "/trades" },
"/404": { page: "/404" },
"/[author]/[permlink]": { page: "/[author]/[permlink]" },
"/settings": { page: "/settings" },
"/[author]": { page: "/[author]" },
"/set/[setName]": { page: "/set/[setName]" },
};
},
};
module.exports = withTM(config);