next.config.js 443 B

12345678910111213141516171819202122
  1. const withTM = require("next-transpile-modules")(["reaflow"]);
  2. const nextConfig = withTM({
  3. reactStrictMode: true,
  4. exportPathMap: () => ({
  5. "/": { page: "/" },
  6. "/editor": { page: "/editor" },
  7. }),
  8. experimental: {
  9. esmExternals: "loose",
  10. outputStandalone: true,
  11. },
  12. compiler: {
  13. styledComponents: true,
  14. swcMinify: true,
  15. removeConsole: {
  16. exclude: ["error"],
  17. },
  18. },
  19. });
  20. module.exports = nextConfig;