diff --git a/.github/workflows/generateCheck.sh b/.github/workflows/generateCheck.sh
index 8d1ba0b0..f073a72c 100755
--- a/.github/workflows/generateCheck.sh
+++ b/.github/workflows/generateCheck.sh
@@ -1,4 +1,6 @@
-if [ $status == 'success' ]; then
+files=$(npx prettier . -l)
+status=$?
+if [ $status == 0 ]; then
echo "## Formatting Check passed 🥳" >>$GITHUB_STEP_SUMMARY
echo "All files are formatted correctly" >>$GITHUB_STEP_SUMMARY
exit 0
diff --git a/.github/workflows/prettierCheck.yml b/.github/workflows/prettierCheck.yml
index 108ca2ca..d248dbe9 100644
--- a/.github/workflows/prettierCheck.yml
+++ b/.github/workflows/prettierCheck.yml
@@ -12,13 +12,5 @@ jobs:
cache: 'npm'
- name: Run npm install
run: npm ci
- - name: Run prettier
- id: prettier
- continue-on-error: true
- run: |
- files=`npx prettier . -l`
- echo files=$files >> "$GITHUB_ENV"
- - name: generate errors/summary
+ - name: Run prettier & generate problems
run: .github/workflows/generateCheck.sh
- env:
- status: ${{ steps.prettier.outcome }}
diff --git a/package-lock.json b/package-lock.json
index 37697006..c9037fd4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,6 +10,7 @@
"dependencies": {
"@auth/drizzle-adapter": "^0.3.2",
"@hookform/resolvers": "^3.3.2",
+ "@next/third-parties": "^14.2.15",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
@@ -22,7 +23,6 @@
"@trpc/client": "^11.0.0-rc.340",
"@trpc/react-query": "^11.0.0-rc.340",
"@trpc/server": "^11.0.0-rc.340",
- "@vercel/analytics": "^1.3.1",
"date-fns": "^2.30.0",
"dotenv": "^16.0.3",
"drizzle-orm": "^0.28.5",
@@ -1994,6 +1994,19 @@
"node": ">= 10"
}
},
+ "node_modules/@next/third-parties": {
+ "version": "14.2.15",
+ "resolved": "https://registry.npmjs.org/@next/third-parties/-/third-parties-14.2.15.tgz",
+ "integrity": "sha512-15CvipE1p1GtlzVfbDfXPrAGIhzJJe75Yy6+GIBRTd36lu95BegRsUJwCxJYoKz47Q09stcU2gJDMduMGqrikw==",
+ "license": "MIT",
+ "dependencies": {
+ "third-party-capital": "1.0.20"
+ },
+ "peerDependencies": {
+ "next": "^13.0.0 || ^14.0.0",
+ "react": "^18.2.0"
+ }
+ },
"node_modules/@nodelib/fs.scandir": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
@@ -3309,26 +3322,6 @@
"url": "https://opencollective.com/typescript-eslint"
}
},
- "node_modules/@vercel/analytics": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.3.1.tgz",
- "integrity": "sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==",
- "dependencies": {
- "server-only": "^0.0.1"
- },
- "peerDependencies": {
- "next": ">= 13",
- "react": "^18 || ^19"
- },
- "peerDependenciesMeta": {
- "next": {
- "optional": true
- },
- "react": {
- "optional": true
- }
- }
- },
"node_modules/acorn": {
"version": "8.10.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",
@@ -10826,11 +10819,6 @@
"optional": true,
"peer": true
},
- "node_modules/server-only": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",
- "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="
- },
"node_modules/set-function-name": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz",
@@ -11546,6 +11534,12 @@
"node": ">=0.8"
}
},
+ "node_modules/third-party-capital": {
+ "version": "1.0.20",
+ "resolved": "https://registry.npmjs.org/third-party-capital/-/third-party-capital-1.0.20.tgz",
+ "integrity": "sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA==",
+ "license": "ISC"
+ },
"node_modules/through": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
diff --git a/package.json b/package.json
index d48fa4d3..1c4b94b2 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"dependencies": {
"@auth/drizzle-adapter": "^0.3.2",
"@hookform/resolvers": "^3.3.2",
+ "@next/third-parties": "^14.2.15",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
@@ -27,7 +28,6 @@
"@trpc/client": "^11.0.0-rc.340",
"@trpc/react-query": "^11.0.0-rc.340",
"@trpc/server": "^11.0.0-rc.340",
- "@vercel/analytics": "^1.3.1",
"date-fns": "^2.30.0",
"dotenv": "^16.0.3",
"drizzle-orm": "^0.28.5",
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 4a14d4fb..52a741a0 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -7,7 +7,7 @@ import { TRPCReactProvider } from '@src/trpc/react';
import Sidebar from '@src/components/nav/Sidebar';
import { type Metadata } from 'next';
-import { Analytics } from '@vercel/analytics/react';
+import { GoogleAnalytics } from '@next/third-parties/google';
const inter = Inter({
subsets: ['latin'],
@@ -48,7 +48,7 @@ export default function RootLayout({