2022-04-03 23:32:57 +00:00
|
|
|
const withPlugins = require('next-compose-plugins');
|
|
|
|
const optimizedImages = require('next-optimized-images');
|
|
|
|
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
reactStrictMode: true,
|
2022-04-05 02:18:57 +00:00
|
|
|
trailingSlash: true,
|
2022-04-03 23:32:57 +00:00
|
|
|
|
|
|
|
images: {
|
|
|
|
loader: 'custom',
|
|
|
|
disableStaticImages: true,
|
|
|
|
},
|
2022-05-01 13:21:23 +00:00
|
|
|
|
|
|
|
webpack(config) {
|
|
|
|
config.resolve.fallback = {
|
|
|
|
...config.resolve.fallback,
|
|
|
|
fs: false,
|
|
|
|
};
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.wasm(\.bin)?$/i,
|
|
|
|
type: 'asset/resource',
|
|
|
|
generator: {
|
|
|
|
filename: 'static/[hash][ext][query]'
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
return config;
|
|
|
|
},
|
2022-04-03 23:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = withPlugins([
|
|
|
|
[optimizedImages, {
|
|
|
|
// config
|
|
|
|
}],
|
|
|
|
], nextConfig);
|