Skip to content

Commit

Permalink
build: change vercel injects to client side
Browse files Browse the repository at this point in the history
  • Loading branch information
the-pesar committed Dec 15, 2024
1 parent d074197 commit 9c7f21c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import { defineConfig } from "vitepress"
import { injectSpeedInsights } from "@vercel/speed-insights"
import { inject } from "@vercel/analytics"

inject()
injectSpeedInsights()

const config = defineConfig({
title: "یاشا",
Expand Down
5 changes: 5 additions & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { injectSpeedInsights } from "@vercel/speed-insights"
import { inject } from "@vercel/analytics"
import Layout from "./components/Layout.vue"
import type { Theme } from "vitepress"
import "./assets/style.css"

inject()
injectSpeedInsights()

export default {
Layout,
enhanceApp({ app, router, siteData }) {
Expand Down

0 comments on commit 9c7f21c

Please sign in to comment.