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

@ -2517,6 +2517,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -2576,6 +2579,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -3917,6 +3923,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -4312,6 +4321,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -6950,6 +6962,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -7832,6 +7847,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -10451,6 +10469,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -11146,6 +11167,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"anyOf": [
{
@ -11455,6 +11479,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"anyOf": [
{
@ -21959,6 +21986,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -24624,6 +24654,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -24860,6 +24893,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -27448,6 +27484,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [

View File

@ -5667,6 +5667,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
@ -7259,6 +7262,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [

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*`,