2022-09-02 11:17:39 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
2022-12-13 13:21:30 +00:00
|
|
|
|
2022-09-02 11:17:39 +00:00
|
|
|
const nextConfig = {
|
2023-02-24 08:47:27 +00:00
|
|
|
reactStrictMode: true,
|
2023-07-25 07:48:59 +00:00
|
|
|
images: {
|
|
|
|
domains: [
|
|
|
|
'assets.leapwallet.io',
|
|
|
|
'raw.githubusercontent.com',
|
|
|
|
'xdefi-static.s3.eu-west-1.amazonaws.com',
|
|
|
|
],
|
|
|
|
},
|
2023-08-14 08:32:49 +00:00
|
|
|
async redirects() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/((?!_next|mobile).*)',
|
|
|
|
has: [
|
|
|
|
{
|
|
|
|
type: 'header',
|
|
|
|
key: 'User-Agent',
|
|
|
|
value: '.*(Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop).*',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
permanent: true,
|
|
|
|
destination: '/mobile',
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2023-10-14 14:54:41 +00:00
|
|
|
async headers() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/(.*)?',
|
|
|
|
headers: [
|
|
|
|
{
|
|
|
|
key: 'Referrer-Policy',
|
|
|
|
value: 'origin-when-cross-origin',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'Pragma',
|
|
|
|
value: 'no-cache',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'Expires',
|
|
|
|
value: new Date().toString(),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'X-Content-Type-Options',
|
|
|
|
value: 'nosniff',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2023-05-16 10:39:52 +00:00
|
|
|
async rewrites() {
|
2022-12-06 09:20:22 +00:00
|
|
|
return [
|
|
|
|
{
|
2023-05-16 10:39:52 +00:00
|
|
|
source: '/:any*',
|
|
|
|
destination: '/',
|
2023-02-24 08:47:27 +00:00
|
|
|
},
|
2022-12-06 09:20:22 +00:00
|
|
|
]
|
|
|
|
},
|
2023-05-16 10:39:52 +00:00
|
|
|
webpack(config) {
|
2022-10-12 15:41:03 +00:00
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.svg$/i,
|
|
|
|
issuer: /\.[jt]sx?$/,
|
|
|
|
use: ['@svgr/webpack'],
|
|
|
|
})
|
|
|
|
|
|
|
|
return config
|
|
|
|
},
|
2022-09-29 19:21:31 +00:00
|
|
|
}
|
2022-09-02 21:29:22 +00:00
|
|
|
|
2023-02-24 08:47:27 +00:00
|
|
|
module.exports = nextConfig
|