Uname:Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64

Base Dir : /var/www/machinox.in

User : root


403WebShell
403Webshell
Server IP : 13.235.167.51  /  Your IP : 216.73.217.116
Web Server : Apache
System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64
User : root ( 0)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/control.machinox.in/node_modules/next/dist/esm/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/control.machinox.in/node_modules/next/dist/esm/lib/get-project-dir.js
import path from 'path';
import { warn } from '../build/output/log';
import { detectTypo } from './detect-typo';
import { realpathSync } from './realpath';
import { printAndExit } from '../server/lib/utils';
export function getProjectDir(dir, exitOnEnoent = true) {
    const resolvedDir = path.resolve(dir || '.');
    try {
        const realDir = realpathSync(resolvedDir);
        if (resolvedDir !== realDir && resolvedDir.toLowerCase() === realDir.toLowerCase()) {
            warn(`Invalid casing detected for project dir, received ${resolvedDir} actual path ${realDir}, see more info here https://nextjs.org/docs/messages/invalid-project-dir-casing`);
        }
        return realDir;
    } catch (err) {
        if (err.code === 'ENOENT' && exitOnEnoent) {
            if (typeof dir === 'string') {
                const detectedTypo = detectTypo(dir, [
                    'build',
                    'dev',
                    'info',
                    'lint',
                    'start',
                    'telemetry',
                    'experimental-test'
                ]);
                if (detectedTypo) {
                    return printAndExit(`"next ${dir}" does not exist. Did you mean "next ${detectedTypo}"?`);
                }
            }
            return printAndExit(`Invalid project directory provided, no such directory: ${resolvedDir}`);
        }
        throw err;
    }
}

//# sourceMappingURL=get-project-dir.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit