Просмотр исходного кода

fix: update isCurrentDirRoot check to use .next directory

Yuki Takei 3 недель назад
Родитель
Сommit
0e91f4c58e
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      apps/app/src/server/util/project-dir-utils.ts

+ 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()