diff --git a/.github/workflows/codeforafrica-deploy-review-app.yml b/.github/workflows/codeforafrica-deploy-review-app.yml index fa979a515..7eec5f81e 100644 --- a/.github/workflows/codeforafrica-deploy-review-app.yml +++ b/.github/workflows/codeforafrica-deploy-review-app.yml @@ -54,7 +54,7 @@ jobs: uses: docker/build-push-action@v3 with: build-args: | - MONGODB_URL=${{ secrets.CODEFORAFRICA_MONGO_URL }}/${{ secrets.CODEFORAFRICA_MONGO_DB_NAME }} + MONGODB_URL=${{ secrets.CODEFORAFRICA_MONGO_URL }}/${{ env.APP_NAME }} NEXT_PUBLIC_APP_URL=${{ env.NEXT_PUBLIC_APP_URL }} PAYLOAD_SECRET=${{ secrets.CODEFORAFRICA_PAYLOAD_SECRET_KEY }} GHOST_URL=${{ secrets.GHOST_URL }} diff --git a/apps/codeforafrica/src/lib/data/seo.js b/apps/codeforafrica/src/lib/data/seo.js index 62890cbf4..8a7b057b2 100644 --- a/apps/codeforafrica/src/lib/data/seo.js +++ b/apps/codeforafrica/src/lib/data/seo.js @@ -26,7 +26,7 @@ export default function getPageSeoFromMeta(page, settings) { metaDescription || stringifyDescription(siteDescription) || null; const titleTemplate = siteTitle ? `%s | ${siteTitle}` : null; const defaultTitle = siteTitle || null; - const canonical = site?.url?.replace(/\/+$/, ""); + const canonical = site.url.replace(/\/+$/, ""); const openGraph = { title, description,