2
0

🔧 (blog) Fix static viewer rewrites for blog posts

This commit is contained in:
Baptiste Arnaud
2024-04-23 09:09:23 +02:00
parent 6594723daf
commit fadcd3af22

View File

@ -140,6 +140,17 @@ const nextConfig = {
], ],
destination: `${process.env.LANDING_PAGE_URL}/blog/:slug`, destination: `${process.env.LANDING_PAGE_URL}/blog/:slug`,
}, },
{
source: '/_next/static/:static*',
has: [
{
type: 'header',
key: 'referer',
value: `https://typebot.io/blog/(?<slug>.*)`,
},
],
destination: `${process.env.LANDING_PAGE_URL}/_next/static/:static*`,
},
{ {
source: '/typebots/:typebot*', source: '/typebots/:typebot*',
has: [ has: [