Add axiom to next config (#3556)
parent
c3d05e8686
commit
f05c7c4082
|
@ -15,6 +15,8 @@ const withTM = require("next-transpile-modules")([
|
||||||
"@calcom/trpc",
|
"@calcom/trpc",
|
||||||
"@calcom/ui",
|
"@calcom/ui",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const { withAxiom } = require("next-axiom");
|
||||||
const { i18n } = require("./next-i18next.config");
|
const { i18n } = require("./next-i18next.config");
|
||||||
|
|
||||||
if (!process.env.NEXTAUTH_SECRET) throw new Error("Please set NEXTAUTH_SECRET");
|
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(withTM);
|
||||||
|
plugins.push(withAxiom);
|
||||||
|
|
||||||
/** @type {import("next").NextConfig} */
|
/** @type {import("next").NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
|
|
|
@ -82,6 +82,7 @@
|
||||||
"mime-types": "^2.1.35",
|
"mime-types": "^2.1.35",
|
||||||
"next": "^12.2.0",
|
"next": "^12.2.0",
|
||||||
"next-auth": "^4.9.0",
|
"next-auth": "^4.9.0",
|
||||||
|
"next-axiom": "^0.10.0",
|
||||||
"next-collect": "^0.2.0",
|
"next-collect": "^0.2.0",
|
||||||
"next-i18next": "^11.0.0",
|
"next-i18next": "^11.0.0",
|
||||||
"next-mdx-remote": "^4.0.3",
|
"next-mdx-remote": "^4.0.3",
|
||||||
|
|
Loading…
Reference in New Issue