2
0

🚑 (lp) Fix environment injection in landing page

This commit is contained in:
Baptiste Arnaud
2023-08-28 09:38:52 +02:00
parent 786e5cb582
commit 6dc9b28f7d
5 changed files with 25 additions and 38 deletions

View File

@@ -0,0 +1,25 @@
import { configureRuntimeEnv } from 'next-runtime-env/build/configure.js'
configureRuntimeEnv()
/** @type {import('next').NextConfig} */
const nextConfig = {
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,
},
]
},
}
export default nextConfig