Add the `pnpm turbo gen core-package analytics` generator template and run it to scaffold the @repo/core-analytics workspace package. The package lands in placeholder state (empty barrel export) ready for the IAnalytics + NoopAnalytics implementation in the next commit. Includes: - turbo/generators/templates/core-package/analytics/ templates - turbo/generators/config.ts analytics generator registration - packages/core-analytics/ placeholder scaffold - apps/web-next/next.config.mjs transpilePackages entry Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
690 B
JavaScript
28 lines
690 B
JavaScript
import { withSentryConfig } from "@sentry/nextjs";
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
transpilePackages: [
|
|
"@repo/auth",
|
|
"@repo/blog",
|
|
"@repo/core-analytics",
|
|
"@repo/core-api",
|
|
"@repo/core-audit",
|
|
"@repo/core-cms",
|
|
"@repo/core-shared",
|
|
"@repo/marketing-pages",
|
|
"@repo/media",
|
|
"@repo/navigation",
|
|
],
|
|
};
|
|
|
|
export default withSentryConfig(nextConfig, {
|
|
// Token is build-time only; CI sets SENTRY_AUTH_TOKEN.
|
|
silent: process.env.CI !== "true",
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
org: process.env.SENTRY_ORG,
|
|
project: process.env.SENTRY_PROJECT_WEB_NEXT,
|
|
hideSourceMaps: true,
|
|
disableLogger: true,
|
|
});
|