diff --git a/space/google.d.ts b/space/google.d.ts deleted file mode 100644 index c37c83c94..000000000 --- a/space/google.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -// google.d.ts -interface GsiButtonConfiguration { - type: "standard" | "icon"; - theme?: "outline" | "filled_blue" | "filled_black"; - size?: "large" | "medium" | "small"; - text?: "signin_with" | "signup_with" | "continue_with" | "signup_with"; - shape?: "rectangular" | "pill" | "circle" | "square"; - logo_alignment?: "left" | "center"; - width?: number; - local?: string; -} diff --git a/space/instrumentation.ts b/space/instrumentation.ts deleted file mode 100644 index 7b89a972e..000000000 --- a/space/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/space/next.config.js b/space/next.config.js index aabd70cb4..2d3e4e788 100644 --- a/space/next.config.js +++ b/space/next.config.js @@ -1,10 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -/* eslint-disable @typescript-eslint/no-var-requires */ /** @type {import('next').NextConfig} */ -// eslint-disable-next-line @typescript-eslint/no-require-imports -require("dotenv").config({ path: ".env" }); -// eslint-disable-next-line @typescript-eslint/no-require-imports -const { withSentryConfig } = require("@sentry/nextjs"); const nextConfig = { trailingSlash: true, @@ -44,43 +38,4 @@ const nextConfig = { ], }; -const sentryConfig = { - // For all available options, see: - // https://github.com/getsentry/sentry-webpack-plugin#options - - org: process.env.SENTRY_ORG_ID || "plane-hq", - project: process.env.SENTRY_PROJECT_ID || "plane-space", - authToken: process.env.SENTRY_AUTH_TOKEN, - // Only print logs for uploading source maps in CI - silent: true, - - // For all available options, see: - // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ - - // Upload a larger set of source maps for prettier stack traces (increases build time) - widenClientFileUpload: true, - - // Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. - // This can increase your server load as well as your hosting bill. - // Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client- - // side errors will fail. - tunnelRoute: "/monitoring", - - // Hides source maps from generated client bundles - hideSourceMaps: true, - - // Automatically tree-shake Sentry logger statements to reduce bundle size - disableLogger: true, - - // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.) - // See the following for more information: - // https://docs.sentry.io/product/crons/ - // https://vercel.com/docs/cron-jobs - automaticVercelMonitors: true, -}; - -if (parseInt(process.env.SENTRY_MONITORING_ENABLED || "0", 10)) { - module.exports = withSentryConfig(nextConfig, sentryConfig); -} else { - module.exports = nextConfig; -} +module.exports = nextConfig; diff --git a/space/sentry.client.config.ts b/space/sentry.client.config.ts deleted file mode 100644 index c81030622..000000000 --- a/space/sentry.client.config.ts +++ /dev/null @@ -1,31 +0,0 @@ -// This file configures the initialization of Sentry on the client. -// The config you add here will be used whenever a users loads a page in their browser. -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -import * as Sentry from "@sentry/nextjs"; - -Sentry.init({ - dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, - environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT || "development", - - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - - replaysOnErrorSampleRate: 1.0, - - // This sets the sample rate to be 10%. You may want this to be 100% while - // in development and sample at a lower rate in production - replaysSessionSampleRate: 0.1, - - // You can remove this option if you're not planning to use the Sentry Session Replay feature: - integrations: [ - Sentry.replayIntegration({ - // Additional Replay configuration goes in here, for example: - maskAllText: true, - blockAllMedia: true, - }), - ], -}); diff --git a/space/sentry.edge.config.ts b/space/sentry.edge.config.ts deleted file mode 100644 index 2dbc6e93a..000000000 --- a/space/sentry.edge.config.ts +++ /dev/null @@ -1,17 +0,0 @@ -// This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on). -// The config you add here will be used whenever one of the edge features is loaded. -// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally. -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -import * as Sentry from "@sentry/nextjs"; - -Sentry.init({ - dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, - environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT || "development", - - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, -}); diff --git a/space/sentry.properties b/space/sentry.properties deleted file mode 100644 index 1741152a3..000000000 --- a/space/sentry.properties +++ /dev/null @@ -1,3 +0,0 @@ -defaults.url=https://sentry.io/ -defaults.org=plane -defaults.project=plane-space diff --git a/space/sentry.server.config.ts b/space/sentry.server.config.ts deleted file mode 100644 index e578f1530..000000000 --- a/space/sentry.server.config.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file configures the initialization of Sentry on the server. -// The config you add here will be used whenever the server handles a request. -// https://docs.sentry.io/platforms/javascript/guides/nextjs/ - -import * as Sentry from "@sentry/nextjs"; - -Sentry.init({ - dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, - environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT || "development", - - // Adjust this value in production, or use tracesSampler for greater control - tracesSampleRate: 1, - - // Setting this option to true will print useful information to the console while you're setting up Sentry. - debug: false, - - // Uncomment the line below to enable Spotlight (https://spotlightjs.com) - // spotlight: process.env.NODE_ENV === 'development', -});