feat: Add backlink to booking page (#16778)

* FEAT: Add backlink to booking page

* restrict to cal.com only

---------

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
Steven Tey
2024-09-24 17:46:49 +00:00
committed by GitHub
co-authored by Peer Richelsen
parent 498b55efdd
commit 54e79d3c08
2 changed files with 17 additions and 1 deletions
+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
...[
{
+1 -1
View File
@@ -79,7 +79,7 @@ export const ANDROID_CHROME_ICON_256 = "/android-chrome-256x256.png";
export const ROADMAP = "https://cal.com/roadmap";
export const DESKTOP_APP_LINK = "https://cal.com/download";
export const JOIN_COMMUNITY = "https://github.com/calcom/cal.com/discussions";
export const POWERED_BY_URL = `${WEBSITE_URL}/?utm_source=embed&utm_medium=powered-by-button`;
export const POWERED_BY_URL = "https://go.cal.com/booking";
export const DOCS_URL = "https://cal.com/docs";
export const DEVELOPER_DOCS = "https://developer.cal.com";
export const SEO_IMG_DEFAULT = `${CAL_URL}/og-image.png`;