From ee1445fa50a141e520eba6fa428788d4040f8198 Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Sat, 7 Sep 2024 10:49:47 +0200 Subject: [PATCH] wip --- apps/app/next.config.mjs | 13 +------------ apps/app/src/instrumentation.ts | 9 --------- apps/web/src/app/layout.tsx | 3 --- bun.lockb | Bin 236896 -> 242536 bytes package.json | 2 +- services/cal/config.json | 6 ++++++ services/cal/package.json | 16 ++++++++++++++++ services/cal/src/example/index.tsx | 0 services/cal/tsconfig.json | 12 ++++++++++++ services/dub/config.json | 7 ++++++- services/dub/{src => }/package.json | 0 services/langbase/config.json | 1 - services/openpanel/config.json | 4 +++- services/resend/config.json | 4 +++- services/resend/package.json | 15 +++++++++++++++ services/resend/src/index.ts | 0 .../jobs => services/resend}/tsconfig.json | 0 services/trigger/config.json | 4 +++- .../jobs => services/trigger}/package.json | 2 +- .../trigger/src/action.ts | 2 +- .../trigger/src}/example.ts | 0 .../trigger}/trigger.config.ts | 0 services/trigger/tsconfig.json | 5 +++++ services/upstash/config.json | 4 +++- 24 files changed, 76 insertions(+), 33 deletions(-) delete mode 100644 apps/app/src/instrumentation.ts create mode 100644 services/cal/config.json create mode 100644 services/cal/package.json create mode 100644 services/cal/src/example/index.tsx create mode 100644 services/cal/tsconfig.json rename services/dub/{src => }/package.json (100%) delete mode 100644 services/langbase/config.json create mode 100644 services/resend/package.json create mode 100644 services/resend/src/index.ts rename {packages/jobs => services/resend}/tsconfig.json (100%) rename {packages/jobs => services/trigger}/package.json (92%) rename apps/app/src/app/api/actions.ts => services/trigger/src/action.ts (84%) rename {packages/jobs/trigger => services/trigger/src}/example.ts (100%) rename {packages/jobs => services/trigger}/trigger.config.ts (100%) create mode 100644 services/trigger/tsconfig.json diff --git a/apps/app/next.config.mjs b/apps/app/next.config.mjs index 15854529..45a5aa0b 100644 --- a/apps/app/next.config.mjs +++ b/apps/app/next.config.mjs @@ -1,19 +1,8 @@ import "./src/env.mjs"; -import { withSentryConfig } from "@sentry/nextjs"; /** @type {import('next').NextConfig} */ const nextConfig = { transpilePackages: ["@v1/supabase"], - experimental: { - instrumentationHook: process.env.NODE_ENV === "production", - }, }; -export default withSentryConfig(nextConfig, { - silent: !process.env.CI, - telemetry: false, - widenClientFileUpload: true, - hideSourceMaps: true, - disableLogger: true, - tunnelRoute: "/monitoring", -}); +export default nextConfig; diff --git a/apps/app/src/instrumentation.ts b/apps/app/src/instrumentation.ts deleted file mode 100644 index 10aaacea..00000000 --- a/apps/app/src/instrumentation.ts +++ /dev/null @@ -1,9 +0,0 @@ -export async function register() { - if (process.env.NEXT_RUNTIME === "nodejs") { - await import("../sentry.server.config"); - } - - if (process.env.NEXT_RUNTIME === "edge") { - await import("../sentry.edge.config"); - } -} diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index afa8bf35..94e149e2 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -1,7 +1,6 @@ import "@v1/ui/globals.css"; import { Footer } from "@/components/footer"; import { Header } from "@/components/header"; -import { Provider as AnalyticsProvider } from "@v1/analytics/client"; import { cn } from "@v1/ui/cn"; import { GeistMono } from "geist/font/mono"; import { GeistSans } from "geist/font/sans"; @@ -36,8 +35,6 @@ export default function RootLayout({
{children}