tabletop-commander/next.config.mjs
2024-09-08 06:43:39 -06:00

20 lines
367 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
webpack(config, { isServer }) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ["@svgr/webpack"],
});
if (isServer) {
import("./polyfills/customevent.js");
}
return config;
},
};
export default nextConfig;