2017-05-09 23:03:20 +02:00
|
|
|
import Link from 'next/link'
|
2019-02-12 02:28:47 +01:00
|
|
|
import getConfig from 'next/config'
|
|
|
|
const { publicRuntimeConfig, serverRuntimeConfig } = getConfig()
|
2017-05-09 23:03:20 +02:00
|
|
|
|
2019-02-12 02:28:47 +01:00
|
|
|
const About = ({ bar }) => (
|
2017-05-09 23:03:20 +02:00
|
|
|
<div id='about-page'>
|
|
|
|
<div>
|
|
|
|
<Link href='/'>
|
|
|
|
<a>Go Back</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2019-02-12 02:28:47 +01:00
|
|
|
<p>{`This is the About page ${publicRuntimeConfig.foo}${bar || ''}`}</p>
|
2017-05-09 23:03:20 +02:00
|
|
|
</div>
|
|
|
|
)
|
2019-02-12 02:28:47 +01:00
|
|
|
|
2019-05-30 03:19:32 +02:00
|
|
|
About.getInitialProps = async ctx => {
|
2019-02-12 02:28:47 +01:00
|
|
|
return { bar: serverRuntimeConfig.bar }
|
|
|
|
}
|
|
|
|
|
|
|
|
export default About
|