next.config.js 330 B

123456789101112131415
  1. const withTM = require('next-transpile-modules')(['reaflow']);
  2. /** @type {import('next').NextConfig} */
  3. const nextConfig = withTM({
  4. exportPathMap: () => ({
  5. '/': { page: '/' },
  6. '/editor': { page: '/editor' },
  7. }),
  8. trailingSlash: true,
  9. experimental: {
  10. esmExternals: 'loose'
  11. }
  12. });
  13. module.exports = nextConfig;