mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-04-28 09:46:52 +02:00
Ignore placeholder projects in API
This commit is contained in:
parent
e2b11095d2
commit
c3aba70594
1 changed files with 1 additions and 3 deletions
|
@ -102,7 +102,7 @@ exports.onPostBuild = async ({graphql, reporter}) => {
|
|||
return
|
||||
}
|
||||
|
||||
let projects = res.data.allProjectsJson.nodes;
|
||||
let projects = res.data.allProjectsJson.nodes.filter((project => { return project.lang !== "ignoreme" }));
|
||||
|
||||
fs.writeFileSync(`${projectsPrefix}.json`, JSON.stringify({
|
||||
success: true,
|
||||
|
@ -119,8 +119,6 @@ exports.onPostBuild = async ({graphql, reporter}) => {
|
|||
});
|
||||
|
||||
projects.forEach((project) => {
|
||||
if(project.lang == "ignoreme") return;
|
||||
|
||||
fs.writeFileSync(`${projectsPrefix}/${project.lang}/${project.urlname}.json`, JSON.stringify({
|
||||
success: true,
|
||||
project: {
|
||||
|
|
Loading…
Add table
Reference in a new issue