Skip to content

chore(main): release 2.0.0 #238

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

Merged
merged 3 commits into from
Jan 31, 2022
Merged

chore(main): release 2.0.0 #238

merged 3 commits into from
Jan 31, 2022

Conversation

token-generator-app[bot]
Copy link
Contributor

@token-generator-app token-generator-app bot commented Jan 24, 2022

🤖 I have created a release beep boop

Changelog

2.0.0 (2022-01-31)

Version 2 of the Essential Gatsby build plugin adds support for the new render modes introduced in Gatsby 4, as well as improved support for Gatsby functions. For best results it should be installed alongside gatsby-plugin-netlify. Beta support was available since Gatsby 4 was released, but with this stable release it is ready for production use for everyone.

Features

This version adds full support for the new Gatsby 4 render modes on Netlify. Gatsby 4 introduced two render modes, alongside its original SSG mode. For a detailed comparison of each mode see this blog post.

To support these new modes, the Essential Netlify build plugin generates three serverless Netlify Functions that are automatically deployed alongside your site:

  • __api: used for Gatsby Functions
  • __dsg: an on-demand builder used for DSG pages.
  • __ssr: used for server-side rendered pages.

You do not need to configure or deploy these functions yourself: they are automatically generated and deployed whenever you build.

You can see the logs for these functions in the "Functions" tabs in the Netlify dashboard.

It will also generate Netlify rewrites to ensure that each route is handled by the correct function.

Installing

This version of the plugin will soon be installed automatically for all Gatsby sites on Netlify. If you can't wait, you can install it manually using file-based plugin installation.

You should also install gatsby-plugin-netlify to enable all features. It is required if you are using SSR pages. See how to install

Deploying your site

You do not need to do anything different to deploy your site if building on Netlify: it will automatically deploy the functions when you build. If you are deploying manually using the Netlify CLI, you must ensure that instead of running netlify build then netlify deploy as separate commands, you run them together as netlify deploy --build.

Caveats

Currently you cannot use StaticImage or gatsby-transformer-sharp in SSR or DSG pages. The best workaround is to use an image CDN such as Cloudinary or imgix to host your images. This will give you faster builds too.

Feedback

If you have feedback or bug reports, join the discussion or open an issue

@token-generator-app token-generator-app bot changed the title chore(main): release 3.0.0-zz-beta.0 chore(main): release 2.0.0 Jan 24, 2022
@token-generator-app token-generator-app bot force-pushed the release-please--branches--main branch 3 times, most recently from 286df45 to a17b734 Compare January 26, 2022 11:48
@netlify
Copy link

netlify bot commented Jan 26, 2022

✔️ Deploy Preview for netlify-plugin-gatsby-demo canceled.

🔨 Explore the source changes: 99e7317

🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-gatsby-demo/deploys/61f7b9920aae96000892c938

@token-generator-app token-generator-app bot force-pushed the release-please--branches--main branch 3 times, most recently from 0485181 to 4d395ba Compare January 27, 2022 21:23
@token-generator-app token-generator-app bot force-pushed the release-please--branches--main branch from 4d395ba to cb7622c Compare January 31, 2022 01:07
Copy link
Contributor

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update release-please config

@kodiakhq kodiakhq bot merged commit 0915fdc into main Jan 31, 2022
@kodiakhq kodiakhq bot deleted the release-please--branches--main branch January 31, 2022 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant