Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ module.exports = {
},
flags: {
FAST_DEV: true,
PARALLEL_SOURCING: true
PARALLEL_SOURCING: true,
// PRESERVE_FILE_DOWNLOAD_CACHE: true,
DETECT_NODE_MUTATIONS: true,
PARTIAL_HYDRATION: true
},
trailingSlash: "never",
plugins: [
Expand Down
5 changes: 4 additions & 1 deletion src/templates/blog-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export const query = graphql`query BlogsBySlug($slug: String!) {

const BlogSinglePage = ({ data }) => {

if (!data?.mdx) {
return null;
}

return (

Expand All @@ -63,5 +66,5 @@ export default BlogSinglePage;


export const Head = ({ data }) => {
return <SEO title={data.mdx.frontmatter.title} image={data.mdx.frontmatter.thumbnail.publicURL} description={data.mdx.frontmatter.description} />;
return <SEO title={data?.mdx?.frontmatter?.title} image={data?.mdx?.frontmatter?.thumbnail?.publicURL} description={data.mdx.frontmatter.description} />;
};
Loading