0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Next.js】Telemetryを無効にする方法

Posted at

はじめに

Next.js は、一般的な使用法に関する匿名のテレメトリデータを収集しています。
これを無効にする方法について記載します。

設定方法

無効にする方法は以下の2つあります。

  • コマンドで無効にする
  • 環境変数で無効にする

コマンドで無効にする

以下のコマンドで無効にできます。

ターミナル
npx next telemetry disable

または

ターミナル
yarn next telemetry disable

無効になっているか確認します。

ターミナル
$ npx next telemetry status
Next.js Telemetry

Status: Disabled

You have opted-out of Next.js' anonymous telemetry program.
No data will be collected from your machine.
Learn more: https://nextjs.org/telemetry

または

ターミナル
$ yarn next telemetry status
Next.js Telemetry

Status: Disabled

You have opted-out of Next.js' anonymous telemetry program.
No data will be collected from your machine.
Learn more: https://nextjs.org/telemetry

環境変数で無効にする

環境変数で無効にするには.envに以下を追記します。

.env
NEXT_TELEMETRY_DISABLED=1
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?