13 lines
267 B
JavaScript
13 lines
267 B
JavaScript
|
export default ({ lang }) => <p>About: {lang}</p>
|
||
|
|
||
|
export const getStaticProps = ({ params: { lang } }) => ({
|
||
|
props: {
|
||
|
lang,
|
||
|
},
|
||
|
})
|
||
|
|
||
|
export const getStaticPaths = () => ({
|
||
|
paths: ['en', 'es', 'fr', 'de'].map((p) => `/lang/${p}/about`),
|
||
|
fallback: false,
|
||
|
})
|