2023-08-28 09:38:52 +02:00
|
|
|
import { configureRuntimeEnv } from 'next-runtime-env/build/configure.js'
|
2022-02-09 18:40:40 +01:00
|
|
|
|
2023-08-28 09:38:52 +02:00
|
|
|
configureRuntimeEnv()
|
|
|
|
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
2023-01-25 16:15:03 +01:00
|
|
|
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,
|
|
|
|
},
|
2023-11-14 08:41:46 +01:00
|
|
|
{
|
|
|
|
source: '/discord',
|
2023-11-14 18:00:23 +01:00
|
|
|
destination: 'https://discord.gg/xjyQczWAXV',
|
2023-11-14 08:41:46 +01:00
|
|
|
permanent: true,
|
|
|
|
},
|
2023-01-25 16:15:03 +01:00
|
|
|
]
|
|
|
|
},
|
2024-06-11 22:35:12 +05:30
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/healthz',
|
|
|
|
destination: '/api/health',
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2023-08-28 09:38:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default nextConfig
|