summaryrefslogtreecommitdiff
path: root/next.config.js
blob: 49e3293284fe7fcebae010a6eed429b02b1880c6 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const fs = require('fs')

const withPlugins = require('next-compose-plugins')
const withPWA = require('next-pwa')
const withOrga = require('@orgajs/next')

const d3packages = fs.readdirSync('node_modules').filter((name) => name.startsWith('d3-'))
const withTM = require('next-transpile-modules')(d3packages)

module.exports = withPlugins([withTM, withPWA, withOrga], {
  distDir: 'build',
  pwa: {
    dest: 'build',
  },
})