Skip to content

Commit

Permalink
feat: Add a Google Analytics tag to the explorer (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls authored Jan 5, 2024
1 parent dbd8a85 commit e4ecab5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2",
"vite": "^4.5.1",
"vite-plugin-radar": "^0.9.1",
"vite-plugin-svgr": "^4.2.0"
}
}
12 changes: 11 additions & 1 deletion explorer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@ import path from "path";

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { VitePluginRadar } from "vite-plugin-radar";
import svgr from "vite-plugin-svgr";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
plugins: [react(), tsconfigPaths({ projects: ["./explorer"] }), svgr()],
plugins: [
react(),
tsconfigPaths({ projects: ["./explorer"] }),
svgr(),
VitePluginRadar({
analytics: {
id: "G-SDPCWGQYK3",
},
}),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
Expand Down
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion website/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
},
build: {
commonjsOptions: {
include: [/.js$/],
include: [/@verax-attestation-registry\/verax-sdk/, /node_modules/],
},
},
});

0 comments on commit e4ecab5

Please sign in to comment.