Skip to content

Commit

Permalink
Merge pull request #755 from CodeForAfrica/bugfix/charterafrica-build
Browse files Browse the repository at this point in the history
Bugfix/charterafrica build
  • Loading branch information
koechkevin authored Jul 4, 2024
2 parents aaf91ef + 45e70e6 commit 3491ea1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
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.27
FROM codeforafrica/charterafrica-ui:0.1.28
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.27",
"version": "0.1.28",
"private": true,
"author": "Code for Africa <tech@codeforafrica.org>",
"description": "This is the official code for https://charter.africa site",
Expand Down
6 changes: 5 additions & 1 deletion apps/charterafrica/src/lib/data/local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export async function getServerSideTags(collection, context) {
return getTags(collection, api, context);
}

export async function getPageServerSideProps(context) {
export async function getPageServerSideProps({
locale = "en",
...contextWithoutLocale
}) {
const context = { ...contextWithoutLocale, locale };
const props = await getPageProps(api, context);

if (!props) {
Expand Down

0 comments on commit 3491ea1

Please sign in to comment.