Create Hybrid Pages

One method for creating dynamic pages with Gatsby is to create pages that are mostly static with dynamic elements being filled in after the initial page load. This technique is especially useful for pages where the majority of the content on the page is the same for every user, but small parts of the page are personalized, or require user authentication.

In this tutorial we'll:

  • Update our Drupal application's configuration to restrict access to some recipe data to authenticated users only
  • Modify our Gatsby application so that anonymous users see a teaser of each recipe, while authenticated users get full access to all of the recipes' details

By the end of this tutorial you should know how to build pages that protect access to some content, as well as have a better understanding of the hybrid pages approach to building dynamic content pages in Gatsby.

Sign in with your Osio Labs account
to gain instant access to our entire library.

Authenticate Users with OAuthCreate Client-Only Routes
Built with ️ by Osio Labs
Terms of use / Privacy policy / © 2021 Osio Labs, Inc.