From 12eea7820d8c869ea53d7c4b5bb34b87fb34269e Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 10 May 2024 22:05:26 +0530 Subject: [PATCH 1/3] [web] Make next shut up It is not the telemetry which is the problem, it is the fact that they spam everywhere in the logs when building that telemetry is on. And they've not intentionally given a way to disable this cleanly. https://github.com/vercel/next.js/discussions/31400 --- web/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/web/package.json b/web/package.json index 647ee3ba3a..cf5649a7ba 100644 --- a/web/package.json +++ b/web/package.json @@ -27,6 +27,7 @@ "dev:payments": "yarn workspace payments dev", "dev:photos": "yarn workspace photos next dev", "dev:staff": "yarn workspace staff dev", + "postinstall": "yarn run next telemetry disable", "lint": "yarn prettier --check --log-level warn . && yarn workspaces run eslint --report-unused-disable-directives .", "lint-fix": "yarn prettier --write --log-level warn . && yarn workspaces run eslint --fix .", "preview": "yarn preview:photos", From 6568cb19a933545b3040ef9cc3ec416c4a95acce Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 10 May 2024 22:12:52 +0530 Subject: [PATCH 2/3] f --- .github/workflows/desktop-lint.yml | 3 ++- .github/workflows/docs-deploy.yml | 2 +- .github/workflows/docs-verify-build.yml | 2 +- .github/workflows/web-deploy-one.yml | 2 +- .github/workflows/web-deploy-preview.yml | 2 +- .github/workflows/web-deploy-staff.yml | 2 +- .github/workflows/web-deploy-staging.yml | 2 +- .github/workflows/web-deploy.yml | 2 +- .github/workflows/web-lint.yml | 3 ++- desktop/.github/workflows/desktop-release.yml | 2 +- web/package.json | 1 - web/yarn.lock | 2 +- 12 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/desktop-lint.yml b/.github/workflows/desktop-lint.yml index d1cfda884d..372139b6f5 100644 --- a/.github/workflows/desktop-lint.yml +++ b/.github/workflows/desktop-lint.yml @@ -25,6 +25,7 @@ jobs: cache: "yarn" cache-dependency-path: "desktop/yarn.lock" - - run: yarn install + - name: Install dependencies + run: yarn install && yarn run next telemetry disable - run: yarn lint diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index b824fe5c32..56b137cf0a 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -30,7 +30,7 @@ jobs: cache-dependency-path: "docs/yarn.lock" - name: Install dependencies - run: yarn install + run: yarn install && yarn run next telemetry disable - name: Build production site # Will create docs/.vitepress/dist diff --git a/.github/workflows/docs-verify-build.yml b/.github/workflows/docs-verify-build.yml index addb52a059..63bca307af 100644 --- a/.github/workflows/docs-verify-build.yml +++ b/.github/workflows/docs-verify-build.yml @@ -31,7 +31,7 @@ jobs: cache-dependency-path: "docs/yarn.lock" - name: Install dependencies - run: yarn install + run: yarn install && yarn run next telemetry disable - name: Build production site run: yarn build diff --git a/.github/workflows/web-deploy-one.yml b/.github/workflows/web-deploy-one.yml index 77c338513d..eceefe5864 100644 --- a/.github/workflows/web-deploy-one.yml +++ b/.github/workflows/web-deploy-one.yml @@ -37,7 +37,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install + run: yarn install && yarn run next telemetry disable - name: Build ${{ inputs.app }} run: yarn build:${{ inputs.app }} diff --git a/.github/workflows/web-deploy-preview.yml b/.github/workflows/web-deploy-preview.yml index 4bb1870726..4e7f412922 100644 --- a/.github/workflows/web-deploy-preview.yml +++ b/.github/workflows/web-deploy-preview.yml @@ -37,7 +37,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install + run: yarn install && yarn run next telemetry disable - name: Build ${{ inputs.app }} run: yarn build:${{ inputs.app }} diff --git a/.github/workflows/web-deploy-staff.yml b/.github/workflows/web-deploy-staff.yml index 854e163644..4bf1eaea90 100644 --- a/.github/workflows/web-deploy-staff.yml +++ b/.github/workflows/web-deploy-staff.yml @@ -32,7 +32,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install + run: yarn install && yarn run next telemetry disable - name: Build staff run: yarn build:staff diff --git a/.github/workflows/web-deploy-staging.yml b/.github/workflows/web-deploy-staging.yml index ca3a6142b2..c31e4f42a5 100644 --- a/.github/workflows/web-deploy-staging.yml +++ b/.github/workflows/web-deploy-staging.yml @@ -31,7 +31,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install + run: yarn install && yarn run next telemetry disable - name: Build photos run: yarn build:photos diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 7427893af5..819d4485b2 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -41,7 +41,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install + run: yarn install && yarn run next telemetry disable - name: Build photos run: yarn build:photos diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml index 7f5d270029..ccfd477508 100644 --- a/.github/workflows/web-lint.yml +++ b/.github/workflows/web-lint.yml @@ -25,6 +25,7 @@ jobs: cache: "yarn" cache-dependency-path: "web/yarn.lock" - - run: yarn install + - name: Install dependencies + run: yarn install && yarn run next telemetry disable - run: yarn lint diff --git a/desktop/.github/workflows/desktop-release.yml b/desktop/.github/workflows/desktop-release.yml index 70eedf3ea6..7eeea25d2c 100644 --- a/desktop/.github/workflows/desktop-release.yml +++ b/desktop/.github/workflows/desktop-release.yml @@ -46,7 +46,7 @@ jobs: run: yarn config set network-timeout 900000 -g - name: Install dependencies - run: yarn install + run: yarn install && yarn run next telemetry disable - name: Install libarchive-tools for pacman build if: startsWith(matrix.os, 'ubuntu') diff --git a/web/package.json b/web/package.json index cf5649a7ba..647ee3ba3a 100644 --- a/web/package.json +++ b/web/package.json @@ -27,7 +27,6 @@ "dev:payments": "yarn workspace payments dev", "dev:photos": "yarn workspace photos next dev", "dev:staff": "yarn workspace staff dev", - "postinstall": "yarn run next telemetry disable", "lint": "yarn prettier --check --log-level warn . && yarn workspaces run eslint --report-unused-disable-directives .", "lint-fix": "yarn prettier --write --log-level warn . && yarn workspaces run eslint --fix .", "preview": "yarn preview:photos", diff --git a/web/yarn.lock b/web/yarn.lock index 3f697e97af..d7f83880fd 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -3326,7 +3326,7 @@ libsodium-wrappers@0.7.9: dependencies: libsodium "^0.7.0" -libsodium@^0.7.0: +libsodium@0.7.9, libsodium@^0.7.0: version "0.7.9" resolved "https://registry.yarnpkg.com/libsodium/-/libsodium-0.7.9.tgz#4bb7bcbf662ddd920d8795c227ae25bbbfa3821b" integrity sha512-gfeADtR4D/CM0oRUviKBViMGXZDgnFdMKMzHsvBdqLBHd9ySi6EtYnmuhHVDDYgYpAO8eU8hEY+F8vIUAPh08A== From 902074022a23859f7cc612080f1d08c7204acb01 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 10 May 2024 22:18:21 +0530 Subject: [PATCH 3/3] ff This reverts commit 6568cb19a933545b3040ef9cc3ec416c4a95acce. --- .github/workflows/desktop-lint.yml | 3 +-- .github/workflows/docs-deploy.yml | 2 +- .github/workflows/docs-verify-build.yml | 2 +- .github/workflows/web-deploy-one.yml | 2 +- .github/workflows/web-deploy-preview.yml | 2 +- .github/workflows/web-deploy-staff.yml | 2 +- .github/workflows/web-deploy-staging.yml | 2 +- .github/workflows/web-deploy.yml | 2 +- .github/workflows/web-lint.yml | 3 +-- desktop/.github/workflows/desktop-release.yml | 2 +- web/apps/accounts/.env | 1 + web/apps/auth/.env | 1 + web/apps/cast/.env | 1 + web/apps/payments/.env | 1 + web/apps/photos/.env | 2 ++ 15 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 web/apps/accounts/.env create mode 100644 web/apps/auth/.env create mode 100644 web/apps/cast/.env create mode 100644 web/apps/payments/.env diff --git a/.github/workflows/desktop-lint.yml b/.github/workflows/desktop-lint.yml index 372139b6f5..d1cfda884d 100644 --- a/.github/workflows/desktop-lint.yml +++ b/.github/workflows/desktop-lint.yml @@ -25,7 +25,6 @@ jobs: cache: "yarn" cache-dependency-path: "desktop/yarn.lock" - - name: Install dependencies - run: yarn install && yarn run next telemetry disable + - run: yarn install - run: yarn lint diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 56b137cf0a..b824fe5c32 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -30,7 +30,7 @@ jobs: cache-dependency-path: "docs/yarn.lock" - name: Install dependencies - run: yarn install && yarn run next telemetry disable + run: yarn install - name: Build production site # Will create docs/.vitepress/dist diff --git a/.github/workflows/docs-verify-build.yml b/.github/workflows/docs-verify-build.yml index 63bca307af..addb52a059 100644 --- a/.github/workflows/docs-verify-build.yml +++ b/.github/workflows/docs-verify-build.yml @@ -31,7 +31,7 @@ jobs: cache-dependency-path: "docs/yarn.lock" - name: Install dependencies - run: yarn install && yarn run next telemetry disable + run: yarn install - name: Build production site run: yarn build diff --git a/.github/workflows/web-deploy-one.yml b/.github/workflows/web-deploy-one.yml index eceefe5864..77c338513d 100644 --- a/.github/workflows/web-deploy-one.yml +++ b/.github/workflows/web-deploy-one.yml @@ -37,7 +37,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install && yarn run next telemetry disable + run: yarn install - name: Build ${{ inputs.app }} run: yarn build:${{ inputs.app }} diff --git a/.github/workflows/web-deploy-preview.yml b/.github/workflows/web-deploy-preview.yml index 4e7f412922..4bb1870726 100644 --- a/.github/workflows/web-deploy-preview.yml +++ b/.github/workflows/web-deploy-preview.yml @@ -37,7 +37,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install && yarn run next telemetry disable + run: yarn install - name: Build ${{ inputs.app }} run: yarn build:${{ inputs.app }} diff --git a/.github/workflows/web-deploy-staff.yml b/.github/workflows/web-deploy-staff.yml index 4bf1eaea90..854e163644 100644 --- a/.github/workflows/web-deploy-staff.yml +++ b/.github/workflows/web-deploy-staff.yml @@ -32,7 +32,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install && yarn run next telemetry disable + run: yarn install - name: Build staff run: yarn build:staff diff --git a/.github/workflows/web-deploy-staging.yml b/.github/workflows/web-deploy-staging.yml index c31e4f42a5..ca3a6142b2 100644 --- a/.github/workflows/web-deploy-staging.yml +++ b/.github/workflows/web-deploy-staging.yml @@ -31,7 +31,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install && yarn run next telemetry disable + run: yarn install - name: Build photos run: yarn build:photos diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 819d4485b2..7427893af5 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -41,7 +41,7 @@ jobs: cache-dependency-path: "web/yarn.lock" - name: Install dependencies - run: yarn install && yarn run next telemetry disable + run: yarn install - name: Build photos run: yarn build:photos diff --git a/.github/workflows/web-lint.yml b/.github/workflows/web-lint.yml index ccfd477508..7f5d270029 100644 --- a/.github/workflows/web-lint.yml +++ b/.github/workflows/web-lint.yml @@ -25,7 +25,6 @@ jobs: cache: "yarn" cache-dependency-path: "web/yarn.lock" - - name: Install dependencies - run: yarn install && yarn run next telemetry disable + - run: yarn install - run: yarn lint diff --git a/desktop/.github/workflows/desktop-release.yml b/desktop/.github/workflows/desktop-release.yml index 7eeea25d2c..70eedf3ea6 100644 --- a/desktop/.github/workflows/desktop-release.yml +++ b/desktop/.github/workflows/desktop-release.yml @@ -46,7 +46,7 @@ jobs: run: yarn config set network-timeout 900000 -g - name: Install dependencies - run: yarn install && yarn run next telemetry disable + run: yarn install - name: Install libarchive-tools for pacman build if: startsWith(matrix.os, 'ubuntu') diff --git a/web/apps/accounts/.env b/web/apps/accounts/.env new file mode 100644 index 0000000000..3f3b1cc9ae --- /dev/null +++ b/web/apps/accounts/.env @@ -0,0 +1 @@ +NEXT_TELEMETRY_DISABLED = 1 diff --git a/web/apps/auth/.env b/web/apps/auth/.env new file mode 100644 index 0000000000..3f3b1cc9ae --- /dev/null +++ b/web/apps/auth/.env @@ -0,0 +1 @@ +NEXT_TELEMETRY_DISABLED = 1 diff --git a/web/apps/cast/.env b/web/apps/cast/.env new file mode 100644 index 0000000000..3f3b1cc9ae --- /dev/null +++ b/web/apps/cast/.env @@ -0,0 +1 @@ +NEXT_TELEMETRY_DISABLED = 1 diff --git a/web/apps/payments/.env b/web/apps/payments/.env new file mode 100644 index 0000000000..3f3b1cc9ae --- /dev/null +++ b/web/apps/payments/.env @@ -0,0 +1 @@ +NEXT_TELEMETRY_DISABLED = 1 diff --git a/web/apps/photos/.env b/web/apps/photos/.env index a039e91055..978c677769 100644 --- a/web/apps/photos/.env +++ b/web/apps/photos/.env @@ -88,3 +88,5 @@ # NEXT_PUBLIC_ENTE_TEST_EXPECTED_JSON=`cat path/to/expected.json` yarn dev # # NEXT_PUBLIC_ENTE_TEST_EXPECTED_JSON = {} + +NEXT_TELEMETRY_DISABLED = 1