From 7f6a9cf5556cb51dbd986c58e5241bc6f7c10c10 Mon Sep 17 00:00:00 2001 From: zomars Date: Wed, 22 Jun 2022 15:10:49 -0600 Subject: [PATCH] Embed tests fixes --- apps/web/next.config.js | 4 ++++ turbo.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index b54e94410a..0dc69b0e4f 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 fefedd22fc..88d9c48ae1 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"] },