question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gatsby-plugin-netlify: mergeLinkHeaders: true resulting in huge _headers files that fail builds

See original GitHub issue

Summary

Netlify support here 👋🏻 We’ve seen several customers in our helpdesk with large builds that time out and fail for the same reason: a very big (> 15MB) _headers file that was generated by gatsby-plugin-netlify. When they toggle mergeLinkHeaders to false, this resolves their issue. It seems like there be a documentation gap here about what that option does.

Here are the current docs on the plugin: https://www.gatsbyjs.com/plugins/gatsby-plugin-netlify/

Motivation

Less frustration for Gatsby developers who are deploying large sites on Netlify

Let me know if we can provide any other info to help!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
isabelleingatocommented, Feb 14, 2021

Hey @isabelleingato- thanks so much for opening a PR for this! I don’t know what the process is on the Gatsby side but it looks like your PR didn’t pass CI tests so it never got automatically merged. Would you be up for digging into whatever’s wrong?

@kaganjd Thanks for the heads up, I just needed to merge master! The update to the README is now merged.

1reaction
isabelleingatocommented, Jan 24, 2021

Hey @wardpeet and @kaganjd,

I’m new here, and I’d like to grab this one. Would that be okay?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gatsby 5 upgrade error - Netlify Support Forums
I'm getting a build error on Netlify that I do not get in my local environment. I've added NODE_VERSION as an environment variable...
Read more >
gatsby-plugin-netlify-headers
Generates a _headers file at the root of the public folder, to configure HTTP headers on netlify. Notably, you can immediately enable HTTP/2...
Read more >
my gatsby site on netlify doesnt get refreshed on update
my gatsby site on netlify doesnt get refreshed on update ... i am using the gatsby netlify plugin like this: resolve: `gatsby-plugin-netlify`, ...
Read more >
5 useful Gatsby plugins you might don't know - okaycloud
Plugin 3: This is another sub-plugin which goes under the gatsby-transformer-remark plugin. With Gatsby and Netlify CMS, it is quite easy to ...
Read more >
CSP Headers for Gatsby project on Netlify | Gabriel Koo
the gatsby-plugin-csp generates the CSP hashes, build the CSP string and inject it as <meta/> in each generated HTML file, in the ./public ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found