Skip to content

Commit

Permalink
Add vercel analytics and speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
pathak-ashutosh committed Jul 5, 2024
1 parent 8776d42 commit 43725fa
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- run: npm run build --if-present
- uses: amondnet/vercel-action@v20
with:
vercel-token: $${{ secrets.VERCEL_TOKEN }}
vercel-org-id: $${{ secrets.VERCEL_ORG_ID }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
61 changes: 61 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"@nextui-org/react": "^2.4.2",
"@supabase/auth-helpers-nextjs": "^0.10.0",
"@supabase/supabase-js": "^2.44.2",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"framer-motion": "^11.2.12",
Expand Down
4 changes: 4 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import './globals.css'
import Header from '@/components/layout/Header'
import Footer from '@/components/layout/Footer'
import { ThemeProvider } from 'next-themes'
import { Analytics } from "@vercel/analytics/react"
import { SpeedInsights } from "@vercel/speed-insights/next"

const inter = Inter({ subsets: ['latin'] })

Expand All @@ -22,6 +24,8 @@ export default function RootLayout({
<Footer />
</div>
</ThemeProvider>
<Analytics />
<SpeedInsights />
</body>
</html>
)
Expand Down
4 changes: 3 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export default async function Home() {
return <div>Error loading featured properties</div>
}

console.log('Featured properties:', properties)

const { data: testimonials, error: testimonialsError } = await supabase
.from('reviews')
.select(`
Expand All @@ -47,7 +49,7 @@ export default async function Home() {
return <div>Error loading testimonials</div>
}

// console.log('Testimonials:', testimonials)
console.log('Testimonials:', testimonials)

return (
<main className="bg-background">
Expand Down

0 comments on commit 43725fa

Please sign in to comment.