24 lines
596 B
JavaScript
24 lines
596 B
JavaScript
const withPWA = require('next-pwa')
|
|
const withTM = require('next-transpile-modules')
|
|
|
|
const { GITHUB_ID, GITHUB_API_SECRET, NODE_ENV, VERCEL_GIT_COMMIT_SHA, GA_MEASUREMENT_ID } =
|
|
process.env
|
|
|
|
const isProduction = NODE_ENV === 'production'
|
|
|
|
module.exports = withTM(['@tldraw/tldraw', '@tldraw/core'])(
|
|
withPWA({
|
|
reactStrictMode: true,
|
|
pwa: {
|
|
disable: !isProduction,
|
|
dest: 'public',
|
|
},
|
|
productionBrowserSourceMaps: true,
|
|
env: {
|
|
NEXT_PUBLIC_COMMIT_SHA: VERCEL_GIT_COMMIT_SHA,
|
|
GA_MEASUREMENT_ID,
|
|
GITHUB_ID,
|
|
GITHUB_API_SECRET,
|
|
},
|
|
})
|
|
)
|