[basic-example][m] - multiple datasetst
This commit is contained in:
@@ -4,7 +4,7 @@ import path from 'path';
|
||||
import parse from '../lib/markdown';
|
||||
import DRD from '../components/DRD';
|
||||
|
||||
export const getStaticProps: GetStaticProps = async (context) => {
|
||||
export const getServerSideProps = async (context) => {
|
||||
const indexFile = path.join(process.cwd(), '/content/index.md');
|
||||
const readme = await fs.readFile(indexFile, 'utf8');
|
||||
let { mdxSource, frontMatter } = await parse(readme, '.mdx');
|
||||
|
||||
Reference in New Issue
Block a user