Skip to content

Commit

Permalink
Add page speed insights (#87)
Browse files Browse the repository at this point in the history
* Add page speed insights

* Fix widget URL

* Add preview credentials to CI rather than keeping in Vercel

* Force dynamic pages (#88)

* Fix widget URL

* Add preview credentials to CI rather than keeping in Vercel

* Force dynamic pages
  • Loading branch information
jonerickson committed Dec 18, 2023
1 parent d96a093 commit 7948cf9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/layout.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import './globals.css';
import cx from 'classnames';
import { Nunito_Sans } from 'next/font/google';
import { ThemeProvider } from './providers';
import { IframeResizer } from './iframe';
import './globals.css';
import { Footer } from '../components/footer';
import cx from 'classnames';
import { SpeedInsights } from '@vercel/speed-insights/next';

const nunitoSans = Nunito_Sans({ subsets: ['latin'] });

Expand All @@ -22,7 +23,10 @@ export default function RootLayout({ children }) {
}}
>
<ThemeProvider>
<main>{children}</main>
<main>
{children}
<SpeedInsights />
</main>
</ThemeProvider>
<Footer />
</body>
Expand Down
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"@vercel/speed-insights": "^1.0.2",
"autoprefixer": "^10.4.16",
"classnames": "^2.3.2",
"dayjs": "^1.11.7",
Expand Down

0 comments on commit 7948cf9

Please sign in to comment.