From 5955ab7a71109e1a9f3149fc14718609accb7107 Mon Sep 17 00:00:00 2001 From: Lenny Peters Date: Sat, 28 Sep 2024 17:19:11 -0700 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20speed=20insights=20added?= =?UTF-8?q?=20(#119)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 4 ++-- package-lock.json | 36 ++++++++++++++++++++++++++++++++++++ package.json | 1 + pages/_app.tsx | 2 ++ 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1bdcd5..4573bd9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,9 +93,9 @@ jobs: deploy: runs-on: ubuntu-latest needs: [lint, test, e2e] - if: "!contains(github.event.head_commit.message, '[skip ci]')" + if: '!contains(github.event.head_commit.message, ''[skip ci]'')' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install Vercel CLI run: npm install --global vercel@latest - name: Pull Vercel Environment Information diff --git a/package-lock.json b/package-lock.json index 5e81b57..66db0a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.1.0", "dependencies": { "@contentful/rich-text-react-renderer": "^15.22.11", + "@vercel/speed-insights": "^1.0.12", "contentful": "^10.6.21", "next": "^14.2.13", "next-images": "^1.8.5", @@ -4562,6 +4563,41 @@ "dev": true, "license": "ISC" }, + "node_modules/@vercel/speed-insights": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.0.12.tgz", + "integrity": "sha512-ZGQ+a7bcfWJD2VYEp2R1LHvRAMyyaFBYytZXsfnbOMkeOvzGNVxUL7aVUvisIrTZjXTSsxG45DKX7yiw6nq2Jw==", + "hasInstallScript": true, + "license": "Apache-2.0", + "peerDependencies": { + "@sveltejs/kit": "^1 || ^2", + "next": ">= 13", + "react": "^18 || ^19", + "svelte": "^4", + "vue": "^3", + "vue-router": "^4" + }, + "peerDependenciesMeta": { + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "react": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/@vercel/stega": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/@vercel/stega/-/stega-0.1.2.tgz", diff --git a/package.json b/package.json index e528eda..00cdf14 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ }, "dependencies": { "@contentful/rich-text-react-renderer": "^15.22.11", + "@vercel/speed-insights": "^1.0.12", "contentful": "^10.6.21", "next": "^14.2.13", "next-images": "^1.8.5", diff --git a/pages/_app.tsx b/pages/_app.tsx index 6b6df98..8bc3435 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,4 +1,5 @@ import { useEffect, createContext } from "react"; +import { SpeedInsights } from "@vercel/speed-insights/next"; // Some global styles but then afterward css module pattern instead import "../src/styles/globals.scss"; @@ -14,6 +15,7 @@ const App = ({ Component, pageProps }) => { return ( + ); };