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"] },