-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathnext.config.js
36 lines (33 loc) · 931 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
32
33
34
35
36
const withTM = require('next-transpile-modules')(['react-bootstrap']);
module.exports = withTM({
webpack: (config) => {
// Enable async WebAssembly
config.experiments = {
asyncWebAssembly: true,
};
// Set the module type for .wasm files
config.module.rules.push({
test: /\.wasm$/,
type: 'webassembly/async',
});
return config;
},
async rewrites() {
return [
{
source: '/invoicehook',
destination: 'http://localhost:5000/invoicehook',
}]
},
async redirects() {
return [
{
source: '/collections/:path*',
destination: '/ordinal-collections/:path*',
permanent: true,
},
]
}, images: {
domains: ['explorer.ordimint.com', 'testnet.ordimint.com'],
},
});