Skip to content

Commit 3dd386d

Browse files
committed
Limit collections to 25 items in dev builds
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent a248ea2 commit 3dd386d

70 files changed

Lines changed: 3 additions & 1276 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

gatsby-config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ module.exports = {
108108
}
109109
allMdx(
110110
sort: {frontmatter: {date: DESC}}
111-
limit: 1000
112-
filter: { frontmatter: { published: { eq: true } } }
111+
limit: ${process.env.NODE_ENV === "development" ? 25 : 1000}
112+
filter: { frontmatter: { published: { eq: true }${process.env.NODE_ENV === "development" ? ", date: { gte: \"2024-01-01\" }" : ""} } }
113113
) {
114114
nodes {
115115
html
@@ -432,4 +432,4 @@ module.exports = {
432432
"gatsby-plugin-meta-redirect",
433433
// make sure this is always the last one
434434
],
435-
};
435+
};

src/collections/integrations/apache-shardingsphere-operator-charts/icons/color/apache-shardingsphere-operator-charts-color.svg

Lines changed: 0 additions & 98 deletions
This file was deleted.

src/collections/integrations/apache-shardingsphere-operator-charts/icons/components/chaos/icons/color/chaos-color.svg

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)