Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some gatsby flags #6135

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
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