forked from DeXter-on-Radix/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
24 lines (17 loc) · 701 Bytes
/
next.config.js
File metadata and controls
24 lines (17 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/** @type {import('next').NextConfig} */
const withMDX = require("@next/mdx")();
const dotenv = require("dotenv");
const path = require("path");
const envPath = path.join(__dirname, process.env.ENV_FILE || ".env.testnet");
dotenv.config({ path: envPath });
const nextConfig = {
output: "export",
// React strict mode causes the dApp to render twice.
// For some reason this does not play well with dApp toolkit.
// https://discord.com/channels/417762285172555786/1181329944811413555/1181336985609175080
reactStrictMode: false,
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
// for github pages
basePath: process.env.BASE_PATH || "",
};
module.exports = withMDX(nextConfig);