Skip to content

Commit 59ff2ee

Browse files
support next.config.ts (#472)
* add next.config.ts check * Create shy-readers-tease.md --------- Co-authored-by: conico974 <nicodorseuil@yahoo.fr>
1 parent b93034d commit 59ff2ee

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/shy-readers-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"open-next": patch
3+
---
4+
5+
support next.config.ts

packages/open-next/src/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function initTempDir() {
129129

130130
function checkRunningInsideNextjsApp() {
131131
const { appPath } = options;
132-
const extension = ["js", "cjs", "mjs"].find((ext) =>
132+
const extension = ["js", "cjs", "mjs", "ts"].find((ext) =>
133133
fs.existsSync(path.join(appPath, `next.config.${ext}`)),
134134
);
135135
if (!extension) {

0 commit comments

Comments
 (0)