Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit a6ffaf0

Browse files
committed
fix: fix src dir detection (#226)
1 parent 635979c commit a6ffaf0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export async function loadConfig(workingDir: string): Promise<Config> {
6868
}
6969
if (util.isNEString(srcDir)) {
7070
config.srcDir = util.cleanPath(srcDir)
71-
} else if (existsDirSync(join(workingDir, 'src'))) {
71+
} else if (
72+
!existsDirSync(join(workingDir, 'pages')) &&
73+
existsDirSync(join(workingDir, 'src', 'pages'))
74+
) {
7275
config.srcDir = '/src'
7376
}
7477
if (util.isNEString(outputDir)) {

0 commit comments

Comments
 (0)