Skip to content

Commit

Permalink
🔧 (blog) Fix static viewer rewrites for blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Apr 23, 2024
1 parent 6594723 commit fadcd3a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/viewer/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,17 @@ const nextConfig = {
],
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*',
has: [
Expand Down

0 comments on commit fadcd3a

Please sign in to comment.