import constants from "lib/constants"; import Head from "components/Head"; import styles from "../../styles/Index.module.sass"; const Social = (props) => { return ( <>

{props.site}

); }; export async function getStaticPaths() { let socials = Object.keys(constants.socials).map(a => `/socials/${a}`) return { paths: [...socials], fallback: false } } export async function getStaticProps({ params }) { return { props: { site: params.social, url: constants.socials[params.social] } } } export default Social;