From 95643fa0094da9d97cf1debbf76b69aea6b1fc69 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Sun, 11 Oct 2026 19:35:41 +0000 Subject: [PATCH] Dev instance: gitignore .next-dev/.freezmo-dev, tsconfig types for .next-dev The dev service's build folder and data folder are runtime artifacts; the dev server also adds .next-dev/types to the tsconfig includes, which is what typed routes need there. --- .gitignore | 4 ++++ tsconfig.json | 22 ++++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 9cd4208..13eedc9 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,8 @@ # next.js /.next/ +# dev instance build folder (NEXT_DIST_DIR) +/.next-dev/ /out/ # production @@ -51,6 +53,8 @@ copy.txt # server-side encrypted sync blobs (runtime data, not source) /.freezmo/ +# dev instance runtime data +/.freezmo-dev/ # e2e suite scratch (push subscriptions for the VAPID test instance) /tests/.tmp/ diff --git a/tsconfig.json b/tsconfig.json index d8b9323..401801a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -19,9 +23,19 @@ } ], "paths": { - "@/*": ["./*"] + "@/*": [ + "./*" + ] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + "next-env.d.ts", + ".next-dev/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }