From ecb1d68d3922c45000f8149483de68f247294851 Mon Sep 17 00:00:00 2001 From: SteakFisher Date: Sat, 15 Jun 2024 03:15:18 +0400 Subject: [PATCH] Minimal changes --- environment.d.ts | 7 ++++- package-lock.json | 64 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 ++ src/app/layout.tsx | 6 ++++- 4 files changed, 77 insertions(+), 2 deletions(-) diff --git a/environment.d.ts b/environment.d.ts index 71076cb..9589e50 100644 --- a/environment.d.ts +++ b/environment.d.ts @@ -12,10 +12,15 @@ declare global { TURSO_DB_URL: string; FIREBASE_SERVICE_ACCOUNT_KEY: string; + + AUTH_SECRET: string; + + AUTH_GOOGLE_ID: string; + AUTH_GOOGLE_SECRET: string; } } } // If this file has no import/export statements (i.e. is a script) // convert it into a module by adding an empty export statement. -export {} \ No newline at end of file +export {}; diff --git a/package-lock.json b/package-lock.json index 6d8ce91..fb33a22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,6 +42,8 @@ "@radix-ui/react-toggle": "^1.0.3", "@radix-ui/react-toggle-group": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", + "@vercel/analytics": "^1.3.1", + "@vercel/speed-insights": "^1.0.12", "autosize": "^6.0.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", @@ -6574,6 +6576,62 @@ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "dev": true }, + "node_modules/@vercel/analytics": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.3.1.tgz", + "integrity": "sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==", + "license": "MPL-2.0", + "dependencies": { + "server-only": "^0.0.1" + }, + "peerDependencies": { + "next": ">= 13", + "react": "^18 || ^19" + }, + "peerDependenciesMeta": { + "next": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "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/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -12943,6 +13001,12 @@ "node": ">=10" } }, + "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==", + "license": "MIT" + }, "node_modules/set-function-length": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz", diff --git a/package.json b/package.json index a47502c..e06f04c 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,8 @@ "@radix-ui/react-toggle": "^1.0.3", "@radix-ui/react-toggle-group": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", + "@vercel/analytics": "^1.3.1", + "@vercel/speed-insights": "^1.0.12", "autosize": "^6.0.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6734c79..6fd9790 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,9 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; -import { Toaster } from "@/components/ui/sonner" +import { Toaster } from "@/components/ui/sonner"; +import { Analytics } from "@vercel/analytics/react"; +import { SpeedInsights } from "@vercel/speed-insights/next"; const inter = Inter({ subsets: ["latin"] }); @@ -20,6 +22,8 @@ export default function RootLayout({
{children} + +