Browse Source

fix: update isCurrentDirRoot check to use .next directory

Yuki Takei 2 months ago
parent
commit
0e91f4c58e
1 changed files with 1 additions and 3 deletions
  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()