-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
39 lines (37 loc) · 1.04 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
39
const path = require('path')
require('dotenv').config({ path: path.join(__dirname, '.env') })
/** @type {import('next').NextConfig} */
const nextConfig = {
env: {
ETHEREUM_ALCHEMY_API: process.env.ETHEREUM_ALCHEMY_API,
GOERLI_ALCHEMY_API: process.env.GOERLI_ALCHEMY_API,
MUMBAI_ALCHEMY_API: process.env.MUMBAI_ALCHEMY_API,
POLYGON_ALCHEMY_API: process.env.POLYGON_ALCHEMY_API,
ENV: process.env.NODE_ENV || 'production',
},
exportPathMap: async function (
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {
return {
'/': { page: '/' },
'/editor': { page: '/editor' },
'/faqs': { page: '/faqs' },
'/marketplace': { page: '/marketplace' },
'/publish': { page: '/publish' },
'/collection': { page: '/collection' },
'/apikeys': { page: '/apikeys' },
}
},
experimental: {
newNextLinkBehavior: true,
scrollRestoration: true,
},
images: {
unoptimized: true,
},
reactStrictMode: true,
swcMinify: true,
trailingSlash: true,
}
module.exports = nextConfig