Embed tests fixes

pull/3147/head
zomars 2022-06-22 15:10:49 -06:00
parent 21fb0fc3a3
commit 7f6a9cf555
2 changed files with 8 additions and 0 deletions

View File

@ -91,6 +91,10 @@ const nextConfig = {
source: "/team/:teamname/avatar.png", source: "/team/:teamname/avatar.png",
destination: "/api/user/avatar?teamname=:teamname", 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() { async redirects() {

View File

@ -123,6 +123,10 @@
"@calcom/embed-core#embed-tests-update-snapshots:ci": { "@calcom/embed-core#embed-tests-update-snapshots:ci": {
"dependsOn": ["@calcom/web#build"] "dependsOn": ["@calcom/web#build"]
}, },
"@calcom/embed-core#build": {
"cache": false,
"outputs": ["../../../apps/web/public/embed/**"]
},
"embed-tests-update-snapshots:ci": { "embed-tests-update-snapshots:ci": {
"dependsOn": ["^embed-tests-update-snapshots:ci"] "dependsOn": ["^embed-tests-update-snapshots:ci"]
}, },