feat: Add backlink to booking page (#16778)

* FEAT: Add backlink to booking page

* restrict to cal.com only

---------

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Steven TeyandPeer Richelsen authored and GitHub committed 2024-09-24 17:46:49 +00:00
1 parent 498b55efdd
commit 54e79d3c08
2 files changed
+17 -1

No files matched your search

+16
View File
@@ -438,6 +438,22 @@ const nextConfig = {
// COEP require-corp header is set conditionally when flag.coep is set to true
headers: [CORP_CROSS_ORIGIN_HEADER],
},
{
source: "/:path*",
has: [
{
type: "host",
value: "cal.com",
},
],
headers: [
// make sure to pass full referer URL for booking pages
{
key: "Referrer-Policy",
value: "no-referrer-when-downgrade",
},
],
},
// These resources loads through embed as well, so they need to have CORP_CROSS_ORIGIN_HEADER
...[
{