Scheduling infrastructure for absolutely everyone.
Removed next-transpile-modules
Alex van Andel59c25d41fd3c
diff --git a/next.config.js b/next.config.jsindex 568fe062702..0c9da3ba5b5 100644--- a/next.config.js+++ b/next.config.js@@ -1,49 +1,45 @@-// https://www.npmjs.com/package/next-transpile-modules-// This makes our @calcom/prisma package from the monorepo to be transpiled and usable by API-const withTM = require("next-transpile-modules")([- "@calcom/app-store",- "@calcom/core",- "@calcom/dayjs",- "@calcom/emails",- "@calcom/embed-core",- "@calcom/embed-snippet",- "@calcom/features",- "@calcom/lib",- "@calcom/prisma",- "@calcom/trpc",-]);const { withAxiom } = require("next-axiom");-module.exports = withAxiom(- withTM({- async rewrites() {- return {- afterFiles: [- // This redirects requests recieved at / the root to the /api/ folder.- {- source: "/v:version/:rest*",- destination: "/api/v:version/:rest*",- },- // This redirects requests to api/v*/ to /api/ passing version as a query parameter.- {- source: "/api/v:version/:rest*",- destination: "/api/:rest*?version=:version",- },- // Keeps backwards compatibility with old webhook URLs- {- source: "/api/hooks/:rest*",- destination: "/api/webhooks/:rest*",- },- ],- fallback: [- // These rewrites are checked after both pages/public files- // and dynamic routes are checked- {- source: "/:path*",- destination: `/api/:path*`,- },- ],- };- },- })-);+module.exports = withAxiom({+ transpilePackages: [+ "@calcom/app-store",+ "@calcom/core",+ "@calcom/dayjs",+ "@calcom/emails",+ "@calcom/embed-core",+ "@calcom/embed-snippet",+ "@calcom/features",+ "@calcom/lib",+ "@calcom/prisma",+ "@calcom/trpc",+ ],+ async rewrites() {+ return {+ afterFiles: [+ // This redirects requests recieved at / the root to the /api/ folder.+ {+ source: "/v:version/:rest*",+ destination: "/api/v:version/:rest*",+ },+ // This redirects requests to api/v*/ to /api/ passing version as a query parameter.+ {+ source: "/api/v:version/:rest*",+ destination: "/api/:rest*?version=:version",+ },+ // Keeps backwards compatibility with old webhook URLs+ {+ source: "/api/hooks/:rest*",+ destination: "/api/webhooks/:rest*",+ },+ ],+ fallback: [+ // These rewrites are checked after both pages/public files+ // and dynamic routes are checked+ {+ source: "/:path*",+ destination: `/api/:path*`,+ },+ ],+ };+ },+});diff --git a/package.json b/package.jsonindex 9effa1de707..d25af3f8144 100644--- a/package.json+++ b/package.json@@ -43,7 +43,6 @@"next-api-middleware": "^1.0.1","next-axiom": "^0.16.0","next-swagger-doc": "^0.3.4",- "next-transpile-modules": "^10.0.0","next-validations": "^0.2.0","typescript": "^4.9.4","tzdata": "^1.0.30",