Book Image

Elevating React Web Development with Gatsby

Book Image

Elevating React Web Development with Gatsby

Overview of this book

Gatsby is a powerful React static site generator that enables you to create lightning-fast web experiences. With the latest version of Gatsby, you can combine your static content with server-side rendered and deferred static content to create a fully rounded application. Elevating React Web Development with Gatsby provides a comprehensive introduction for anyone new to GatsbyJS and will help you get up to speed in no time. Complete with hands-on tutorials and projects, this easy-to-follow guide starts by teaching you the core concepts of GatsbyJS. You'll then discover how to build performant, accessible, and scalable websites with the GatsbyJS framework. Once you've worked through the practical projects in the book, you'll be able to build anything from a personal website to large-scale applications with authentication and make your site rise through those SEO rankings. By the end of this Gatsby development book, you'll be well-versed in every aspect of the tool's performance and accessibility and have learned how to build client websites that your users will love.
Table of Contents (18 chapters)
1
Part 1: Getting Started
7
Part 2: Going Live
12
Part 3: Advanced Concepts

Monitoring the performance of your site

One of the hardest things to debug is user errors in production that you cannot seem to replicate on your machine. Without logs, this can be an impossible task. Luckily, some tools are dedicated to monitoring errors within your application and alert you when things do go wrong. One of the most popular tools out there for this purpose is Sentry.io.

Using Sentry.io analytics

Sentry.io is a full-stack error tracking system that supports a variety of desktop, browser, and server applications – including GatsbyJS! Sentry works by integrating with our site's logging infrastructure directly. Let's learn how we can implement Sentry so that we can monitor it for production errors:

  1. Navigate to https://sentry.io/signup/ from your browser and create an account.
  2. Once you've logged in, create a new project by navigating to Projects and clicking Create Project.
  3. Fill in the new project user interface, like so:
...