internal/modules/cjs/loader.js:1133
      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/fortlyex/fort-api/server.js
require() of ES modules is not supported.
require() of /home/fortlyex/fort-api/server.js from /usr/local/lsws/fcgi-bin/lsnode.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename server.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/fortlyex/fort-api/package.json.

    at new NodeError (internal/errors.js:322:7)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1133:13)
    at Module.load (internal/modules/cjs/loader.js:981:32)
    at Function.Module._load (internal/modules/cjs/loader.js:821:12)
    at Module.require (internal/modules/cjs/loader.js:1005:19)
    at require (internal/modules/cjs/helpers.js:118:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:573:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:61:5)
    at Module._compile (internal/modules/cjs/loader.js:1116:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1145:10) {
  code: 'ERR_REQUIRE_ESM'
}
internal/modules/cjs/loader.js:1133
      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/fortlyex/fort-api/server.js
require() of ES modules is not supported.
require() of /home/fortlyex/fort-api/server.js from /usr/local/lsws/fcgi-bin/lsnode.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename server.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/fortlyex/fort-api/package.json.

    at new NodeError (internal/errors.js:322:7)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1133:13)
    at Module.load (internal/modules/cjs/loader.js:981:32)
    at Function.Module._load (internal/modules/cjs/loader.js:821:12)
    at Module.require (internal/modules/cjs/loader.js:1005:19)
    at require (internal/modules/cjs/helpers.js:118:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:573:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:61:5)
    at Module._compile (internal/modules/cjs/loader.js:1116:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1145:10) {
  code: 'ERR_REQUIRE_ESM'
}
internal/modules/cjs/loader.js:1133
      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/fortlyex/fort-api/server.js
require() of ES modules is not supported.
require() of /home/fortlyex/fort-api/server.js from /usr/local/lsws/fcgi-bin/lsnode.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename server.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/fortlyex/fort-api/package.json.

    at new NodeError (internal/errors.js:322:7)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1133:13)
    at Module.load (internal/modules/cjs/loader.js:981:32)
    at Function.Module._load (internal/modules/cjs/loader.js:821:12)
    at Module.require (internal/modules/cjs/loader.js:1005:19)
    at require (internal/modules/cjs/helpers.js:118:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:573:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:61:5)
    at Module._compile (internal/modules/cjs/loader.js:1116:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1145:10) {
  code: 'ERR_REQUIRE_ESM'
}
internal/modules/cjs/loader.js:1133
      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/fortlyex/fort-api/server.js
require() of ES modules is not supported.
require() of /home/fortlyex/fort-api/server.js from /usr/local/lsws/fcgi-bin/lsnode.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename server.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/fortlyex/fort-api/package.json.

    at new NodeError (internal/errors.js:322:7)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1133:13)
    at Module.load (internal/modules/cjs/loader.js:981:32)
    at Function.Module._load (internal/modules/cjs/loader.js:821:12)
    at Module.require (internal/modules/cjs/loader.js:1005:19)
    at require (internal/modules/cjs/helpers.js:118:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:573:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:61:5)
    at Module._compile (internal/modules/cjs/loader.js:1116:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1145:10) {
  code: 'ERR_REQUIRE_ESM'
}
internal/modules/cjs/loader.js:1133
      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
      ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/fortlyex/fort-api/server.js
require() of ES modules is not supported.
require() of /home/fortlyex/fort-api/server.js from /usr/local/lsws/fcgi-bin/lsnode.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename server.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/fortlyex/fort-api/package.json.

    at new NodeError (internal/errors.js:322:7)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1133:13)
    at Module.load (internal/modules/cjs/loader.js:981:32)
    at Function.Module._load (internal/modules/cjs/loader.js:821:12)
    at Module.require (internal/modules/cjs/loader.js:1005:19)
    at require (internal/modules/cjs/helpers.js:118:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:573:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:61:5)
    at Module._compile (internal/modules/cjs/loader.js:1116:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1145:10) {
  code: 'ERR_REQUIRE_ESM'
}
node:internal/modules/esm/resolve:1005
    throw error;
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'dotenv' imported from /home/fortlyex/fort-api/src/config/env.js
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:314:9)
    at packageResolve (node:internal/modules/esm/resolve:772:81)
    at moduleResolve (node:internal/modules/esm/resolve:859:18)
    at defaultResolve (node:internal/modules/esm/resolve:989:11)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:747:20)
    at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:783:38)
    at ModuleLoader.resolveSync (node:internal/modules/esm/loader:806:52)
    at #cachedResolveSync (node:internal/modules/esm/loader:766:25)
    at ModuleLoader.getModuleJobForRequire (node:internal/modules/esm/loader:469:50)
    at new ModuleJobSync (node:internal/modules/esm/module_job:392:34) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v22.23.5
◇ injected env (28) from .env
◇ injected env (28) from .env
◇ injected env (28) from .env
◇ injected env (28) from .env
