Skip to content

Commit

Permalink
Merge pull request #895 from CodeForAfrica/fix-prod-buils
Browse files Browse the repository at this point in the history
@charteafrica Fix SEO failing on production
  • Loading branch information
koechkevin authored Sep 18, 2024
2 parents a1668dd + 3cb0aba commit fea32c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ ARG NEXT_TELEMETRY_DISABLED \
NEXT_PUBLIC_APP_NAME="charterAFRICA" \
NEXT_PUBLIC_APP_URL \
NEXT_PUBLIC_SENTRY_DSN \
NEXT_PUBLIC_SEO_DISABLED \
# Payload (runtime)
MONGO_URL \
# TODO(koech): Standadise naming of Payload Secret. Our options:
Expand All @@ -167,6 +168,7 @@ COPY apps/charterafrica ./apps/charterafrica/

# When building Next.js app, Next.js needs to connect to local Payload
ENV PAYLOAD_PUBLIC_APP_URL=http://localhost:3000
ENV NEXT_PUBLIC_SEO_DISABLED=${NEXT_PUBLIC_SEO_DISABLED}
RUN pnpm --filter "./apps/charterafrica/" build-next

# When building Payload app, Payload needs to have final app URL
Expand Down
2 changes: 1 addition & 1 deletion apps/charterafrica/contrib/dokku/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM codeforafrica/charterafrica-ui:0.1.31
FROM codeforafrica/charterafrica-ui:0.1.33
2 changes: 1 addition & 1 deletion apps/charterafrica/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "charterafrica",
"version": "0.1.31",
"version": "0.1.33",
"private": true,
"author": "Code for Africa <[email protected]>",
"description": "This is the official code for https://charter.africa site",
Expand Down

0 comments on commit fea32c0

Please sign in to comment.