[monorepo][m] - remove nx from simple-example

This commit is contained in:
Luccas Mateus de Medeiros Gomes
2023-04-24 08:06:45 -03:00
parent 6e90f1897b
commit 1a1a485927
13 changed files with 5330 additions and 215 deletions

View File

@@ -61,10 +61,9 @@ export default function ProjectPage({ project }) {
// Generates `/posts/1` and `/posts/2`
export async function getStaticPaths() {
const project_name = getConfig().serverRuntimeConfig.project_name;
const jsonDirectory = path.join(
process.cwd(),
`/examples/${project_name}/datasets.json`
'datasets.json'
);
const repos = await fs.readFile(jsonDirectory, 'utf8');
@@ -89,10 +88,9 @@ export async function getStaticPaths() {
}
export async function getStaticProps({ params }) {
const project_name = getConfig().serverRuntimeConfig.project_name;
const jsonDirectory = path.join(
process.cwd(),
`/examples/${project_name}/datasets.json`
'datasets.json'
);
const reposFile = await fs.readFile(jsonDirectory, 'utf8');
const repos: GithubProject[] = JSON.parse(reposFile);

View File

@@ -4,10 +4,9 @@ import { getProject } from '../lib/octokit';
import getConfig from 'next/config';
export async function getStaticProps() {
const project_name = getConfig().serverRuntimeConfig.project_name;
const jsonDirectory = path.join(
process.cwd(),
`/examples/${project_name}/datasets.json`
'/datasets.json'
);
const repos = await fs.readFile(jsonDirectory, 'utf8');
const github_pat = getConfig().serverRuntimeConfig.github_pat;