depot/web/lukegbcom/next.config.js
Luke Granger-Brown 3d92896314 lukegbcom: add EE QR Code fixer
This removes the trailing $$ from the QR codes generated by EE.

Gah, why do they still do this.
2022-05-01 14:21:23 +01:00

35 lines
694 B
JavaScript

const withPlugins = require('next-compose-plugins');
const optimizedImages = require('next-optimized-images');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
trailingSlash: true,
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;
},
}
module.exports = withPlugins([
[optimizedImages, {
// config
}],
], nextConfig);