Skip to content

Commit

Permalink
ci: 🎡 speed insights added (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loonz206 authored Sep 29, 2024
1 parent 3bffcaa commit 5955ab7
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 36 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 @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -14,6 +15,7 @@ const App = ({ Component, pageProps }) => {
return (
<PageContext.Provider value={pageProps.pageContext}>
<Component {...pageProps} />
<SpeedInsights />
</PageContext.Provider>
);
};
Expand Down

0 comments on commit 5955ab7

Please sign in to comment.