2
0
Эх сурвалжийг харах

fix: update isCurrentDirRoot check to use .next directory

Yuki Takei 2 сар өмнө
parent
commit
0e91f4c58e

+ 1 - 3
apps/app/src/server/util/project-dir-utils.ts

@@ -3,9 +3,7 @@ import path from 'node:path';
 import process from 'node:process';
 import { isServer } from '@growi/core/dist/utils/browser-utils';
 
-const isCurrentDirRoot =
-  isServer() &&
-  (fs.existsSync('./next.config.ts') || fs.existsSync('./next.config.js'));
+const isCurrentDirRoot = isServer() && fs.existsSync('./.next');
 
 export const projectRoot = isCurrentDirRoot
   ? process.cwd()