diff --git a/sites/public/src/pages/applications/start/choose-language.tsx b/sites/public/src/pages/applications/start/choose-language.tsx index 3a2356e1ac..dfdf8400d0 100644 --- a/sites/public/src/pages/applications/start/choose-language.tsx +++ b/sites/public/src/pages/applications/start/choose-language.tsx @@ -22,6 +22,7 @@ import { useGetApplicationStatusProps } from "../../../lib/hooks" import { UserStatus } from "../../../lib/constants" import ApplicationFormLayout from "../../../layouts/application-form" import styles from "../../../layouts/application-form.module.scss" +import { runtimeConfig } from "../../../lib/runtime-config" const loadListing = async ( backendApiBase, @@ -196,3 +197,11 @@ const ApplicationChooseLanguage = (props: ChooseLanguageProps) => { } export default ApplicationChooseLanguage + +export function getServerSideProps() { + const backendApiBase = runtimeConfig.getBackendApiBase() + + return { + props: { backendApiBase: backendApiBase }, + } +}