Add Sentry and Baselime packages in the monitoring section

This commit introduces Sentry and Baselime packages into the monitoring section, complete with associated dependencies and scripts. These changes also reflect necessary updates to the 'pnpm-lock.yaml' file to account for these new dependencies.
This commit is contained in:
giancarlo
2024-04-04 01:09:19 +08:00
parent 67763d3e1f
commit 24a68b2b1f
24 changed files with 2147 additions and 983 deletions

View File

@@ -0,0 +1,7 @@
import { registerInstrumentation } from '@kit/monitoring';
export async function register() {
// Register monitoring instrumentation based on the
// MONITORING_INSTRUMENTATION_PROVIDER environment variable.
await registerInstrumentation();
}

View File

@@ -12,12 +12,11 @@ const INTERNAL_PACKAGES = [
'@kit/supabase',
'@kit/i18n',
'@kit/mailers',
'@kit/billing',
'@kit/billing-gateway',
'@kit/stripe',
'@kit/email-templates',
'@kit/database-webhooks',
'@kit/cms',
'@kit/monitoring',
];
/** @type {import('next').NextConfig} */
@@ -31,6 +30,7 @@ const config = {
},
experimental: {
mdxRs: true,
instrumentationHook: true,
optimizePackageImports: [
'recharts',
'lucide-react',

View File

@@ -31,6 +31,7 @@
"@kit/supabase": "workspace:^",
"@kit/team-accounts": "workspace:^",
"@kit/ui": "workspace:^",
"@kit/monitoring": "workspace:^",
"@radix-ui/react-icons": "^1.3.0",
"@supabase/ssr": "^0.1.0",
"@supabase/supabase-js": "^2.42.0",
@@ -41,7 +42,7 @@
"edge-csrf": "^1.0.9",
"i18next": "^23.10.1",
"i18next-resources-to-backend": "^1.2.0",
"next": "14.2.0-canary.54",
"next": "14.2.0-canary.55",
"next-sitemap": "^4.2.3",
"next-themes": "0.3.0",
"react": "18.2.0",