mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 01:35:39 -04:00
feat(docs): add Vercel Analytics to docs app
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
"name": "sofa-docs",
|
"name": "sofa-docs",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@takumi-rs/image-response": "^0.73.0",
|
"@takumi-rs/image-response": "^0.73.0",
|
||||||
|
"@vercel/analytics": "^2.0.1",
|
||||||
"fumadocs-core": "16.6.17",
|
"fumadocs-core": "16.6.17",
|
||||||
"fumadocs-mdx": "14.2.10",
|
"fumadocs-mdx": "14.2.10",
|
||||||
"fumadocs-ui": "16.6.17",
|
"fumadocs-ui": "16.6.17",
|
||||||
@@ -369,6 +370,8 @@
|
|||||||
|
|
||||||
"@ungap/structured-clone": ["@ungap/structured-clone@1.3.0", "", {}, "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g=="],
|
"@ungap/structured-clone": ["@ungap/structured-clone@1.3.0", "", {}, "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g=="],
|
||||||
|
|
||||||
|
"@vercel/analytics": ["@vercel/analytics@2.0.1", "", { "peerDependencies": { "@remix-run/react": "^2", "@sveltejs/kit": "^1 || ^2", "next": ">= 13", "nuxt": ">= 3", "react": "^18 || ^19 || ^19.0.0-rc", "svelte": ">= 4", "vue": "^3", "vue-router": "^4" }, "optionalPeers": ["@remix-run/react", "@sveltejs/kit", "next", "nuxt", "react", "svelte", "vue", "vue-router"] }, "sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g=="],
|
||||||
|
|
||||||
"acorn": ["acorn@8.16.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="],
|
"acorn": ["acorn@8.16.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="],
|
||||||
|
|
||||||
"acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="],
|
"acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="],
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@takumi-rs/image-response": "^0.73.0",
|
"@takumi-rs/image-response": "^0.73.0",
|
||||||
|
"@vercel/analytics": "^2.0.1",
|
||||||
"fumadocs-core": "16.6.17",
|
"fumadocs-core": "16.6.17",
|
||||||
"fumadocs-mdx": "14.2.10",
|
"fumadocs-mdx": "14.2.10",
|
||||||
"fumadocs-ui": "16.6.17",
|
"fumadocs-ui": "16.6.17",
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
|
import { Analytics } from "@vercel/analytics/next";
|
||||||
import { RootProvider } from "fumadocs-ui/provider/next";
|
import { RootProvider } from "fumadocs-ui/provider/next";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { DM_Sans, DM_Serif_Display } from "next/font/google";
|
import { DM_Sans, DM_Serif_Display } from "next/font/google";
|
||||||
|
|
||||||
import "./global.css";
|
import "./global.css";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
@@ -32,6 +34,7 @@ export default function Layout({ children }: LayoutProps<"/">) {
|
|||||||
>
|
>
|
||||||
<body className="flex min-h-screen flex-col font-[family-name:var(--font-dm-sans)]">
|
<body className="flex min-h-screen flex-col font-[family-name:var(--font-dm-sans)]">
|
||||||
<RootProvider theme={{ forcedTheme: "dark" }}>{children}</RootProvider>
|
<RootProvider theme={{ forcedTheme: "dark" }}>{children}</RootProvider>
|
||||||
|
<Analytics />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user