Skip to content

Scheduling infrastructure for absolutely everyone.

Embed tests fixes

zomars7f6a9cf5556c
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index b54e94410a4..0dc69b0e4fd 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -91,6 +91,10 @@ const nextConfig = {
source: "/team/:teamname/avatar.png",
destination: "/api/user/avatar?teamname=:teamname",
},
+ /* TODO: have these files being served from another deployment or CDN {
+ source: "/embed/embed.js",
+ destination: process.env.NEXT_PUBLIC_EMBED_LIB_URL?,
+ }, */
];
},
async redirects() {
diff --git a/turbo.json b/turbo.json
index fefedd22fc1..88d9c48ae11 100644
--- a/turbo.json
+++ b/turbo.json
@@ -123,6 +123,10 @@
"@calcom/embed-core#embed-tests-update-snapshots:ci": {
"dependsOn": ["@calcom/web#build"]
},
+ "@calcom/embed-core#build": {
+ "cache": false,
+ "outputs": ["../../../apps/web/public/embed/**"]
+ },
"embed-tests-update-snapshots:ci": {
"dependsOn": ["^embed-tests-update-snapshots:ci"]
},