next-drupal
next-drupal copied to clipboard
DRUPAL_FRONT_PAGE for second locale not working
fixed it with following snippet:
export async function getStaticProps(
context
): Promise<GetStaticPropsResult<NodePageProps>> {
if (context.locale === "en" && !context.params.slug) {
context.params.slug = ["node/1"];
}
....
}
next.config.js i18n
i18n: {
locales: ["de", "en"],
defaultLocale: "de",
},