Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Add speed insights (#359)

1ilitfa1e736436f4
diff --git a/package-lock.json b/package-lock.json
index 958525ce..f3536c74 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -17,6 +17,7 @@
"@uiw/codemirror-theme-vscode": "^4.21.25",
"@uiw/react-codemirror": "^4.21.25",
"@vercel/analytics": "^1.2.2",
+ "@vercel/speed-insights": "^1.2.0",
"axios": "^1.7.4",
"classnames": "^2.5.1",
"dexie": "^3.2.4",
@@ -2303,6 +2304,41 @@
}
}
},
+ "node_modules/@vercel/speed-insights": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.2.0.tgz",
+ "integrity": "sha512-y9GVzrUJ2xmgtQlzFP2KhVRoCglwfRQgjyfY607aU0hh0Un6d0OUyrJkjuAlsV18qR4zfoFPs/BiIj9YDS6Wzw==",
+ "hasInstallScript": true,
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "@sveltejs/kit": "^1 || ^2",
+ "next": ">= 13",
+ "react": "^18 || ^19 || ^19.0.0-rc",
+ "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/@vitejs/plugin-react": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.2.1.tgz",
diff --git a/package.json b/package.json
index ed5ce69f..9303e029 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"@uiw/codemirror-theme-vscode": "^4.21.25",
"@uiw/react-codemirror": "^4.21.25",
"@vercel/analytics": "^1.2.2",
+ "@vercel/speed-insights": "^1.2.0",
"axios": "^1.7.4",
"classnames": "^2.5.1",
"dexie": "^3.2.4",
diff --git a/src/main.jsx b/src/main.jsx
index 1e8888d9..f09f4682 100644
--- a/src/main.jsx
+++ b/src/main.jsx
@@ -1,6 +1,7 @@
import ReactDOM from "react-dom/client";
import { LocaleProvider } from "@douyinfe/semi-ui";
import { Analytics } from "@vercel/analytics/react";
+import { SpeedInsights } from "@vercel/speed-insights/react";
import App from "./App.jsx";
import en_US from "@douyinfe/semi-ui/lib/es/locale/source/en_US";
import "./index.css";
@@ -11,5 +12,6 @@ root.render(
<LocaleProvider locale={en_US}>
<App />
<Analytics />
+ <SpeedInsights />
</LocaleProvider>,
);