forked from forbole/xion-staking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
46 lines (42 loc) · 1.01 KB
/
next.config.mjs
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
40
41
42
43
44
45
46
import { setupDevPlatform } from "@cloudflare/next-on-pages/next-dev";
const useProxy = false;
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: process.env.QUICK_BUILD === "true",
},
images: {
remotePatterns: [
{
hostname: "s3.amazonaws.com",
pathname: "**",
port: "",
protocol: "https",
},
],
},
trailingSlash: true, // This is important when deploying in GH pages
typescript: {
ignoreBuildErrors: process.env.QUICK_BUILD === "true",
},
...(useProxy
? {
rewrites: async () => [
{
destination: "https://rpc.xion-testnet-1.burnt.com:443",
source: "/rpc",
},
],
}
: {
basePath:
process.env.NEXT_PUBLIC_IS_DEPLOYMENT === "true"
? "/xion-staking"
: undefined,
output: "export",
}),
};
if (process.env.NODE_ENV === "development") {
await setupDevPlatform();
}
export default nextConfig;