[simple-example][sm] - change from repos.json to datasets.json

This commit is contained in:
Luccas Mateus de Medeiros Gomes 2023-04-18 08:59:27 -03:00
parent caed253900
commit 078e261e56
3 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ export default function ProjectPage({
// Generates `/posts/1` and `/posts/2`
export async function getStaticPaths() {
const jsonDirectory = path.join(process.cwd(), '/examples/simple-example/repos.json');
const jsonDirectory = path.join(process.cwd(), '/examples/simple-example/datasets.json');
const repos = await fs.readFile(jsonDirectory, 'utf8');
return {

View File

@ -7,7 +7,7 @@ import Link from 'next/link';
export async function getStaticProps() {
const jsonDirectory = path.join(
process.cwd(),
'/examples/simple-example/repos.json'
'/examples/simple-example/datasets.json'
);
const repos = await fs.readFile(jsonDirectory, 'utf8');