import { GetStaticProps } from "next"; import ContentsFolder, { getStaticProps as folderGetStaticProps } from "./folder/[slug]"; /* * ╭────────╮ * ──────────────────────────────────────────╯ PAGE ╰───────────────────────────────────────────── */ const Contents = (props: Parameters[0]): JSX.Element => ( ); export default Contents; /* * ╭──────────────────────╮ * ───────────────────────────────────╯ NEXT DATA FETCHING ╰────────────────────────────────────── */ export const getStaticProps: GetStaticProps = async (context) => { context.params = { slug: "root" }; return await folderGetStaticProps(context); };