Skip to content

Commit

Permalink
dbg: check if template string causes gql error on vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt committed Dec 11, 2022
1 parent 49cd833 commit f855482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gatsby-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
// Fix mermaid and bulma css conflicts.
// .label styles in bulma will override .label styles in mermaid
// themeCSS:
// ".label { font-size: inherit!important; font-weight: inherit!important; line-height: initial!important; }",
// ".label { font-size: inherit!important; font-weight: inherit!important; line-height: initial!important; }",
},
},
},
Expand Down Expand Up @@ -187,7 +187,7 @@ export default {
{
allMdx(
sort: { frontmatter: { date: DESC } },
${onlySelectPublishedArticlesInProd}
,filter: {frontmatter: {published: {eq: true}}}
) {
nodes {
excerpt
Expand Down
2 changes: 1 addition & 1 deletion gatsby-node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function createPages({ graphql, actions, reporter }) {
// Get all markdown blog posts sorted by date
const result = await graphql(`
{
allMdx(sort: { frontmatter: { date: DESC } }${onlySelectPublishedArticlesInProd}) {
allMdx(sort: { frontmatter: { date: DESC } } ,filter: {frontmatter: {published: {eq: true}}}) {
edges {
node {
body
Expand Down

0 comments on commit f855482

Please sign in to comment.