on master help sign in
pages/guides: filter out special cased app page
1ba0e8dMatilde Park
pages/guides/[slug].js+5−1
@@ -58,8 +58,12 @@ export async function getStaticProps({ params }) {
58export async function getStaticPaths() {
58export async function getStaticPaths() {
59 const posts = getAllPosts(["slug", "date"], "guides", "date");
59 const posts = getAllPosts(["slug", "date"], "guides", "date");
60
60
61+ const noApplications = posts.filter(
62+ (e) => e.slug !== "installing-applications"
63+ );
64+
61 return {
65 return {
62− paths: posts.map((post) => {
66+ paths: noApplications.map((post) => {
63 return {
67 return {
64 params: {
68 params: {
65 slug: post.slug,
69 slug: post.slug,