Skip to content

Commit cecdd63

Browse files
authored
chore: disable nextjs telemetry (#2517)
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
1 parent 880fbc9 commit cecdd63

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.next/
33
dist/
44
config/
5+
cache/config.json
56
pnpm-lock.yaml
67
cypress/config/settings.cypress.json
78
.github
@@ -17,4 +18,4 @@ public/*
1718
**/charts
1819

1920
# Prettier breaks GitHub alert syntax in markdown
20-
*.md
21+
*.md

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,11 @@ module.exports = {
3333
rangeEnd: 0,
3434
},
3535
},
36+
{
37+
files: 'cache/config.json',
38+
options: {
39+
rangeEnd: 0, // default: Infinity
40+
},
41+
},
3642
],
3743
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"packageManager": "pnpm@10.24.0",
66
"scripts": {
77
"preinstall": "npx only-allow pnpm",
8+
"postinstall": "next telemetry disable",
89
"dev": "nodemon -e ts --watch server --watch seerr-api.yml -e .json,.ts,.yml -x ts-node -r tsconfig-paths/register --files --project server/tsconfig.json server/index.ts",
910
"build:server": "tsc --project server/tsconfig.json && copyfiles -u 2 server/templates/**/*.{html,pug} dist/templates && tsc-alias -p server/tsconfig.json",
1011
"build:next": "next build",

0 commit comments

Comments
 (0)