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:
co-authored by
Peer Richelsen
parent
498b55efdd
commit
54e79d3c08
@@ -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
|
||||
...[
|
||||
{
|
||||
|
||||
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user