2022-09-18 09:46:42 +02:00
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
2022-02-09 18:40:40 +01:00
|
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
|
|
enabled: process.env.ANALYZE === 'true',
|
|
|
|
})
|
|
|
|
|
2023-01-25 16:15:03 +01:00
|
|
|
module.exports = withBundleAnalyzer({
|
|
|
|
transpilePackages: ['utils', 'models'],
|
|
|
|
async redirects() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/typebot-lib',
|
|
|
|
destination:
|
|
|
|
'https://unpkg.com/typebot-js@2.0.21/dist/index.umd.min.js',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/typebot-lib/v2',
|
|
|
|
destination: 'https://unpkg.com/typebot-js@2.1.3/dist/index.umd.min.js',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
})
|