Skip to content

Commit 2400b92

Browse files
committed
fix: disable telemetry
1 parent fba23c0 commit 2400b92

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/next.config.mjs

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { withSentryConfig } from "@sentry/nextjs";
22
/** @type {import('next').NextConfig} */
33
import analyzer from "@next/bundle-analyzer";
44
import nextra from "nextra";
5-
import path from "path";
6-
import { fileURLToPath } from "url";
5+
// import path from "path";
6+
// import { fileURLToPath } from "url";
77

8-
const __filename = fileURLToPath(import.meta.url);
9-
const __dirname = path.dirname(__filename);
8+
// const __filename = fileURLToPath(import.meta.url);
9+
// const __dirname = path.dirname(__filename);
1010

1111
const withNextra = nextra({
1212
theme: "nextra-theme-docs",
@@ -133,7 +133,7 @@ const nextConfig = withAnalyzer(
133133
experimental: {
134134
externalDir: true,
135135
},
136-
webpack: (config, { isServer }) => {
136+
webpack: (config) => {
137137
config.externals.push({
138138
// "@blocknote/core": "bncore",
139139
// "@blocknote/react": "bnreact",
@@ -219,4 +219,5 @@ export default withSentryConfig(nextConfig, {
219219
// https://docs.sentry.io/product/crons/
220220
// https://vercel.com/docs/cron-jobs
221221
automaticVercelMonitors: true,
222+
telemetry: false,
222223
});

0 commit comments

Comments
 (0)