Luke Granger-Brown
3d92896314
This removes the trailing $$ from the QR codes generated by EE. Gah, why do they still do this.
35 lines
694 B
JavaScript
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);
|