-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
39 lines (35 loc) · 952 Bytes
/
next.config.js
File metadata and controls
39 lines (35 loc) · 952 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/** @type {import('next').NextConfig} */
if (typeof self === "undefined") {
global.self = global
}
const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? ""
const nextConfig = {
output: "export",
basePath: basePath || undefined,
assetPrefix: basePath ? `${basePath}/` : undefined,
reactStrictMode: true,
transpilePackages: ["@vechain/vebetterdao-contracts"],
typescript: { ignoreBuildErrors: false },
eslint: { ignoreDuringBuilds: true },
experimental: {
turbo: {
resolveAlias: {
fs: { browser: "./src/lib/empty-module.ts" },
net: { browser: "./src/lib/empty-module.ts" },
tls: { browser: "./src/lib/empty-module.ts" },
},
},
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
}
}
return config
},
}
module.exports = nextConfig