2021-09-04 11:36:47 +00:00
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
|
|
const withTM = require('next-transpile-modules')(['@tldraw/tldraw'])
|
|
|
|
|
2021-09-04 12:02:13 +00:00
|
|
|
const { NODE_ENV } = process.env
|
|
|
|
|
|
|
|
const isProduction = NODE_ENV === 'production'
|
|
|
|
|
2021-09-04 11:36:47 +00:00
|
|
|
module.exports = withTM({
|
2021-08-10 16:12:55 +00:00
|
|
|
reactStrictMode: true,
|
2021-09-04 12:02:13 +00:00
|
|
|
pwa: {
|
|
|
|
disable: !isProduction,
|
|
|
|
dest: 'public',
|
|
|
|
},
|
2021-09-04 11:36:47 +00:00
|
|
|
})
|