From 6932d3600e9cbe381769300da7a5b2dbbe4ddd1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Tue, 5 Apr 2022 10:30:11 -0600 Subject: [PATCH] Fix/post deploy migrations (#2385) * Runs db migrations post-deploy * Deploy fixes --- apps/web/pages/apps/[slug].tsx | 2 +- turbo.json | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/web/pages/apps/[slug].tsx b/apps/web/pages/apps/[slug].tsx index fc5d609656..bf244935ac 100644 --- a/apps/web/pages/apps/[slug].tsx +++ b/apps/web/pages/apps/[slug].tsx @@ -106,7 +106,7 @@ export const getStaticProps = async (ctx: GetStaticPropsContext) => { /* If the app doesn't have a README we fallback to the packagfe description */ source = fs.readFileSync(postFilePath).toString(); } catch (error) { - console.log("error", error); + console.log(`No README.mdx provided for: ${appDirname}`); source = singleApp.description; } diff --git a/turbo.json b/turbo.json index 35c2f4e6f2..a530b9e3af 100644 --- a/turbo.json +++ b/turbo.json @@ -73,7 +73,16 @@ "dependsOn": ["@calcom/prisma#db-deploy"] }, "@calcom/website#build": { - "dependsOn": ["$WEBSITE_BASE_URL"], + "dependsOn": [ + "$NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE", + "$NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE", + "$NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE", + "$NEXT_PUBLIC_STRIPE_PRO_PLAN_PRODUCT", + "$NEXT_PUBLIC_STRIPE_PUBLIC_KEY", + "$NEXT_PUBLIC_WEBAPP_URL", + "$NEXT_PUBLIC_WEBSITE_URL", + "$STRIPE_WEBHOOK_SECRET" + ], "outputs": [".next/**"] }, "build": { @@ -83,7 +92,7 @@ "db-deploy": {}, "db-seed": {}, "deploy": { - "dependsOn": [] + "dependsOn": ["@calcom/web#build"] }, "clean": { "cache": false