depot/web/lukegbcom/next.config.js

36 lines
694 B
JavaScript
Raw Normal View History

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,
},
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);