Skip to content

Commit

Permalink
Fix prod build SEO disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Sep 18, 2024
1 parent b10d351 commit d20b65a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/charterafrica-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: charterAFRICA | Deploy | PROD

on:
push:
branches: [main]
branches: [fix-prod-buils]

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
Expand Down
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

0 comments on commit d20b65a

Please sign in to comment.