Skip to content

Commit

Permalink
⏪ (blog) Revert rewrite referer regex and manually add entry for /blog
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 3, 2024
1 parent a413d1b commit 58ba6a4
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 4 deletions.
39 changes: 39 additions & 0 deletions apps/docs/openapi/builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -2517,6 +2517,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -2576,6 +2579,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -3917,6 +3923,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -4312,6 +4321,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -6950,6 +6962,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -7832,6 +7847,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -10451,6 +10469,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -11146,6 +11167,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"anyOf": [
{
Expand Down Expand Up @@ -11455,6 +11479,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"anyOf": [
{
Expand Down Expand Up @@ -21959,6 +21986,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -24624,6 +24654,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -24860,6 +24893,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -27448,6 +27484,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down
6 changes: 6 additions & 0 deletions apps/docs/openapi/viewer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5667,6 +5667,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down Expand Up @@ -7259,6 +7262,9 @@
"name": {
"type": "string"
},
"isSessionVariable": {
"type": "boolean"
},
"value": {
"nullable": true,
"anyOf": [
Expand Down
19 changes: 15 additions & 4 deletions apps/viewer/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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*`,
Expand All @@ -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*`,
Expand All @@ -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*`,
Expand All @@ -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*`,
Expand Down

0 comments on commit 58ba6a4

Please sign in to comment.