[simple-example][sm] - change from repos.json to datasets.json
This commit is contained in:
parent
caed253900
commit
078e261e56
@ -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 {
|
||||
|
||||
@ -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');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user