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;