Skip to content

Commit

Permalink
Test if this is undefined for all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Jul 5, 2024
1 parent 657f2e2 commit 086c9ca
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ FROM base-builder as charterafrica-builder
ARG NEXT_TELEMETRY_DISABLED \
# Next.js / Payload (build time)
PORT \
PAYLOAD_PUBLIC_LOCALES="en, fr, pt" \
PAYLOAD_PUBLIC_DEFAULT_LOCALE="en" \
NEXT_PUBLIC_DEFAULT_LOCALE="en" \
# Next.js (runtime)
NEXT_PUBLIC_APP_NAME="charterAFRICA" \
NEXT_PUBLIC_APP_URL \
Expand All @@ -170,9 +167,6 @@ 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_DEFAULT_LOCALE=${NEXT_PUBLIC_DEFAULT_LOCALE}
ENV PAYLOAD_PUBLIC_LOCALES=${PAYLOAD_PUBLIC_LOCALES}
ENV PAYLOAD_PUBLIC_DEFAULT_LOCALE=${PAYLOAD_PUBLIC_DEFAULT_LOCALE}
RUN pnpm --filter "./apps/charterafrica/" build-next

# When building Payload app, Payload needs to have final app URL
Expand Down
1 change: 1 addition & 0 deletions apps/charterafrica/src/lib/data/common/processPageIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const processMooc = (page) => {
};

async function processPageIndex(page, api, context) {
console.log({ context });
processHero(page);
processMooc(page);
processSpotlight(page, api, context);
Expand Down
1 change: 0 additions & 1 deletion apps/charterafrica/src/lib/data/common/processPageTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ async function processPageTools(page, api, context) {
label: value ?? null,
}),
);
console.log({ context });
const filterLabels = labelsPerLocale[locale];
const filterOptions = filters.map((filter) => {
if (filter === "sort") {
Expand Down

0 comments on commit 086c9ca

Please sign in to comment.