2
0

(blog) Revert rewrite referer regex and manually add entry for /blog

This commit is contained in:
Baptiste Arnaud
2024-05-03 17:55:38 +02:00
parent a413d1bdc4
commit 58ba6a4089
3 changed files with 60 additions and 4 deletions

View File

@ -146,7 +146,7 @@ const nextConfig = {
{
type: 'header',
key: 'referer',
value: `https://typebot.io/blog(?<slug>/.*)`,
value: `https://typebot.io/blog/(?<slug>.*)`,
},
],
destination: `${process.env.LANDING_PAGE_URL}/_next/static/:static*`,
@ -157,7 +157,18 @@ const nextConfig = {
{
type: 'header',
key: 'referer',
value: `https://typebot.io/blog(?<slug>/.*)`,
value: `https://typebot.io/blog/(?<slug>.*)`,
},
],
destination: `${process.env.LANDING_PAGE_URL}/images/blog/:images*`,
},
{
source: '/images/blog/:images*',
has: [
{
type: 'header',
key: 'referer',
value: `https://typebot.io/blog`,
},
],
destination: `${process.env.LANDING_PAGE_URL}/images/blog/:images*`,
@ -168,7 +179,7 @@ const nextConfig = {
{
type: 'header',
key: 'referer',
value: `https://typebot.io/blog(?<slug>/.*)`,
value: `https://typebot.io/blog/(?<slug>.*)`,
},
],
destination: `${process.env.LANDING_PAGE_URL}/typebots/:typebot*`,
@ -179,7 +190,7 @@ const nextConfig = {
{
type: 'header',
key: 'referer',
value: `https://typebot.io/blog(?<slug>/.*)`,
value: `https://typebot.io/blog/(?<slug>.*)`,
},
],
destination: `${process.env.LANDING_PAGE_URL}/styles/:style*`,