forked from OpenCerts/opencerts-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
31 lines (30 loc) · 923 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
const withSass = require("@zeit/next-sass");
const withBundleAnalyzer = require("@zeit/next-bundle-analyzer");
module.exports = withBundleAnalyzer(
withSass({
analyzeBrowser: ["browser"].includes(process.env.BUNDLE_ANALYZE),
bundleAnalyzerConfig: {
browser: {
analyzerMode: "static",
reportFilename: "../bundles/client.html"
}
},
cssModules: true,
exportPathMap: function exportMap() {
return {
"/": { page: "/" },
"/registry": { page: "/registry" },
"/collaborate": { page: "/collaborate" },
"/privacy": { page: "/privacy" },
"/terms": { page: "/terms" },
"/viewer": { page: "/viewer" },
"/faq": { page: "/faq" }
};
},
// Variables passed to both server and client
publicRuntimeConfig: {
network: process.env.NET,
legacyRendererUrl: process.env.LEGACY_RENDERER_URL
}
})
);