Skip to content

Commit

Permalink
Merge pull request #43 from MaxLeiter/vercel-analytics
Browse files Browse the repository at this point in the history
@vercel/analytics
  • Loading branch information
MaxLeiter authored Oct 28, 2022
2 parents 1330a56 + c4ba627 commit 9030f99
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 52 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@
"dependencies": {
"@next/bundle-analyzer": "12.3.1",
"@supabase/supabase-js": "1.35.6",
"@vercel/og": "0.0.18",
"@vercel/analytics": "^0.1.2",
"@vercel/og": "^0.0.18",
"globby": "^11.0.0",
"lodash.debounce": "4.0.8",
"next": "12.3.1",
"next-remote-watch": "1.0.0",
"next-themes": "0.2.1",
"postcss": "8.4.18",
"postcss": "^8.4.18",
"react": "18.2.0",
"react-dom": "18.2.0",
"rss-parser": "3.12.0",
"sitemap": "7.1.1",
"swr": "1.3.0",
"tiny-glob": "^0.2.9",
"youtubei": "0.0.1-rc.36"
},
"devDependencies": {
Expand Down
10 changes: 7 additions & 3 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import React from 'react'
import type { AppProps } from 'next/app'
import { Analytics } from '@vercel/analytics/react'

import '@styles/global.css'
import { ThemeProvider } from 'next-themes'

export default function MyApp({ Component, pageProps }: AppProps) {
return (
<ThemeProvider disableTransitionOnChange enableSystem={true} >
<Component {...pageProps} />
</ThemeProvider>
<>
<ThemeProvider disableTransitionOnChange enableSystem={true}>
<Component {...pageProps} />
</ThemeProvider>
<Analytics />
</>
)
}
59 changes: 36 additions & 23 deletions pnpm-lock.yaml

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

31 changes: 7 additions & 24 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"jsx": "preserve",
"target": "es2020",
"module": "esnext",
"lib": [
"dom",
"es2019"
],
"lib": ["dom", "es2019"],
"noEmit": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
Expand All @@ -30,27 +27,13 @@
"resolveJsonModule": true,
"isolatedModules": true,
"paths": {
"@components/*": [
"components/*"
],
"@lib/*": [
"lib/*"
],
"@styles/*": [
"styles/*"
],
"@data/*": [
"data/*"
]
"@components/*": ["components/*"],
"@lib/*": ["lib/*"],
"@styles/*": ["styles/*"],
"@data/*": ["data/*"]
},
"incremental": true
},
"exclude": [
"node_modules"
],
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js"
]
"exclude": ["node_modules"],
"include": ["**/*.ts", "**/*.tsx", "**/*.js"],
}

1 comment on commit 9030f99

@vercel
Copy link

@vercel vercel bot commented on 9030f99 Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.