From 1014ecb4af3b683724625e84bbb3bcc79b4a09b0 Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Mon, 25 Nov 2024 15:06:58 -0700 Subject: [PATCH] fix(nextjs): Add support for next.config.ts for executors closes: #28960 --- .../next/src/executors/build/lib/create-next-config-file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/src/executors/build/lib/create-next-config-file.ts b/packages/next/src/executors/build/lib/create-next-config-file.ts index beeaf0cd15f1b..4171c4d4b6bcd 100644 --- a/packages/next/src/executors/build/lib/create-next-config-file.ts +++ b/packages/next/src/executors/build/lib/create-next-config-file.ts @@ -243,7 +243,7 @@ export function ensureFileExtensions( files: string[], absoluteDir: string ): string[] { - const extensions = ['.js', '.cjs', '.mjs', '.json']; + const extensions = ['.js', '.cjs', '.mjs', '.json', '.ts']; return files.map((file) => { const providedExt = extname(file); if (providedExt && extensions.includes(providedExt)) return file;