Skip to content

Commit

Permalink
support embedding org profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
hariombalhara committed Oct 27, 2023
1 parent 2956bdb commit 299cb50
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ const matcherConfigRootPath = {
source: "/",
};

const matcherConfigRootPathEmbed = {
has: [
{
type: "host",
value: orgHostPath,
},
],
source: "/embed",
};

const matcherConfigUserRoute = {
has: [
{
Expand Down Expand Up @@ -245,6 +255,10 @@ const nextConfig = {
...matcherConfigRootPath,
destination: "/team/:orgSlug?isOrgProfile=1",
},
{
...matcherConfigRootPathEmbed,
destination: "/team/:orgSlug?isOrgProfile=1",
},
{
...matcherConfigUserRoute,
destination: "/org/:orgSlug/:user",
Expand Down

0 comments on commit 299cb50

Please sign in to comment.