gatsby-starter-portfolio-minimal-theme icon indicating copy to clipboard operation
gatsby-starter-portfolio-minimal-theme copied to clipboard

Removing blogSettings from gatsby-config.js to disable blog functionality causes errors preventing gatsby build

Open jmtrinh opened this issue 1 year ago • 3 comments

Am I interpreting the README correctly when I delete blogSettings? I would like to disable the blog functionality, but I get these errors.

error

jmtrinh avatar Sep 21 '23 09:09 jmtrinh

Hey @jmtrinh! Have you deleted the blogSettings property inside your config as well as deleted the articles inside your content directory? Both should be removed if you want to disable the blog feature.

konstantinmuenster avatar Sep 25 '23 06:09 konstantinmuenster

Hi @konstantinmuenster! I have tried deleting the articles inside content but this error still persists.

error

jmtrinh avatar Sep 25 '23 20:09 jmtrinh

If it helps, I've experimented with ending execution before line 17 in createPages.js: const articleListingPageSlug = options.blogSettings.path.replace(/\/\/+/g, '/'); which does prevent the error from appearing.

jmtrinh avatar Sep 25 '23 20:09 jmtrinh