import React from 'react' const DynamicPage = (props) => ( <>
DynamicPage
{JSON.stringify(props)}
) export const getStaticPaths = async ({ locales }) => { const paths = [] for (const locale of locales) { paths.push({ params: { slug: ['hello'], }, locale, }) paths.push({ params: { slug: ['company', 'about-us'], }, locale, }) } return { fallback: false, paths, } } export const getStaticProps = async ({ params, locale }) => ({ props: { locale, params, hello: 'world', }, }) export default DynamicPage