Skip to content

Commit

Permalink
feat: Measuring performance audit using Lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
Param-Harrison committed May 24, 2020
1 parent 8dbc6a6 commit aee7be6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@

// You can delete this file if you're not using it

require("dotenv").config();

import React from "react";
import { Elements } from "@stripe/react-stripe-js";
import { loadStripe } from "@stripe/stripe-js";

import CartProvider from "./src/context/cart";

const stripePromise = loadStripe(`${process.env.GATSBY_STRIPE_KEY}`);
const stripePromise = loadStripe(
`${
process.env.GATSBY_STRIPE_KEY
? process.env.GATSBY_STRIPE_KEY
: "pk_test_FqfOKoybWF1MEQNRNbk5GWuw00Qgtn3SLM"
}`
);

export const wrapRootElement = ({ element }) => (
<Elements stripe={stripePromise}>
Expand Down

0 comments on commit aee7be6

Please sign in to comment.