import { useAmp } from 'next/amp' import { useRouter } from 'next/router' export const config = { amp: true, } export default function Page(props) { const router = useRouter() return ( <>
another page
{useAmp() ? 'yes' : 'no'}
{JSON.stringify(props)}
{router.locale}
{JSON.stringify(router.locales)}
{JSON.stringify(router.query)}
{router.pathname}
{router.asPath}
> ) } export const getServerSideProps = ({ locale, locales }) => { return { props: { locale, locales, }, } }