Можно ли установить api в домене в качестве основной точки входа в пакет. json файл с Node.JS? Пример ...
{
"name": "x",
"version": "1.0.0",
"description": "x",
"main": "www.someApi/someRoute",
"scripts": {
"test": "jest --watchAll",
"DB": "node db.js",
"start": "npm run build-client & node src/index.js",
"dev": "npm run dev-client & npm run start-redis && cross-env ENV='development' nodemon index.js",
"dev-peer": "cross-env GENERATE_PEER_PORT='true' ENV='development' nodemon index.js",
"start-redis": "redis-server --daemonize yes",
"build-client": "npm run clean && parcel build src/client/src/index.html --out-dir src/client/dist",
"dev-client": "npm run clean && parcel src/client/src/index.html --out-dir src/client/dist",
"clean": "rm -rf .cache src/client/dist",
"prod": "nwbuild --platforms win32,win64,osx64,linux32,linux64 --buildDir dist/ src/"
},