From f05c7c40829947aefb0c67b931420bca18b79b29 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Wed, 27 Jul 2022 16:19:59 -0400 Subject: [PATCH] Add axiom to next config (#3556) --- apps/web/next.config.js | 3 +++ apps/web/package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 62aa8d0781..19877bb2c6 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -15,6 +15,8 @@ const withTM = require("next-transpile-modules")([ "@calcom/trpc", "@calcom/ui", ]); + +const { withAxiom } = require("next-axiom"); const { i18n } = require("./next-i18next.config"); if (!process.env.NEXTAUTH_SECRET) throw new Error("Please set NEXTAUTH_SECRET"); @@ -71,6 +73,7 @@ if (process.env.ANALYZE === "true") { } plugins.push(withTM); +plugins.push(withAxiom); /** @type {import("next").NextConfig} */ const nextConfig = { diff --git a/apps/web/package.json b/apps/web/package.json index de6696d216..a647f156da 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -82,6 +82,7 @@ "mime-types": "^2.1.35", "next": "^12.2.0", "next-auth": "^4.9.0", + "next-axiom": "^0.10.0", "next-collect": "^0.2.0", "next-i18next": "^11.0.0", "next-mdx-remote": "^4.0.3",