Home
Support Forums

Build my Node.js app from a subdirectory?

My app is configured like this

client
client/package.json
client/build {static build of the client - created through build script}
server
server/package.json
server/server.js
netlify.toml

I would like to keep the folders like that can I just point the toml file to the master package.json in the server directory? I tried this and got an error. Or do you only support packages if the master package.json is in the root?

netlify.toml

base = "server/"

package.json (located in /server)

{
	"name": "Infoshot",
	"version": "0.0.4",
	"description": "Research Tool",
	"main": "server.js",
	"scripts": {
		"start": "node server.js",
		"server": "nodemon server.js",
		"client": "npm start --prefix ../client/",
		"clientinstall": "npm install --prefix client",
		"dev": "concurrently \"npm run server\"  \"npm run client\"",
		"heroku-postbuild": "cd ../client && NPM_CONFIG_PRODUCTION=false npm install  && CI= npm run build"
	},
	"keywords": [],
	"author": "",
	"license": "ISC",
	"dependencies": {
		"bcryptjs": "^2.4.3",
		"config": "^3.2.2",
		"dotenv": "^8.2.0",
		"enzyme": "^3.11.0",
		"express": "^4.17.1",
		"express-validator": "^6.2.0",
		"jsonwebtoken": "^8.5.1",
		"mongoose": "^5.7.0",
		"nodemailer": "^6.4.14",
		"nodemailer-sendgrid": "^1.0.3"
	},
	"devDependencies": {
		"concurrently": "^4.1.2",
		"nodemon": "^1.19.2"
	}
}

netlify site name sleepy-nightingale-6a9de6

Build notes

    indent preformatted text by 4 spaces

1:25:42 PM: Build ready to start
1:25:44 PM: build-image version: 09c2cdcdf242cf2f57c9ee0fcad9d298fad9ad41
1:25:44 PM: build-image tag: v3.5.0
1:25:44 PM: buildbot version: df708c2c221a3345a3fb36b8609ebca30cb2f6c5
1:25:44 PM: Fetching cached dependencies
1:25:44 PM: Failed to fetch cache, continuing with build
1:25:44 PM: Starting to prepare the repo for build
1:25:45 PM: No cached dependencies found. Cloning fresh repo
1:25:45 PM: git clone https://github.com/PaulAyling/InfoshotV5
1:25:46 PM: Preparing Git Reference refs/heads/master
1:25:48 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: 'server' versus '/server' in the Netlify UI
1:25:48 PM: Starting build script
1:25:48 PM: Installing dependencies
1:25:48 PM: Python version set to 2.7
1:25:49 PM: v12.18.0 is already installed.
1:25:50 PM: Now using node v12.18.0 (npm v6.14.4)
1:25:50 PM: Started restoring cached build plugins
1:25:50 PM: Finished restoring cached build plugins
1:25:50 PM: Attempting ruby version 2.7.1, read from environment
1:25:52 PM: Using ruby version 2.7.1
1:25:52 PM: Using PHP version 5.6
1:25:52 PM: Started restoring cached node modules
1:25:52 PM: Finished restoring cached node modules
1:25:53 PM: Installing NPM modules using NPM version 6.14.4
1:26:02 PM: > nodemon@1.19.4 postinstall /opt/build/repo/server/node_modules/nodemon
1:26:02 PM: > node bin/postinstall || exit 0
1:26:02 PM: Love nodemon? You can now support the project via the open collective:
1:26:02 PM:  > https://opencollective.com/nodemon/donate
1:26:03 PM: npm WARN Infoshot@0.0.4 No repository field.
1:26:03 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
1:26:03 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
1:26:03 PM: added 478 packages from 365 contributors and audited 482 packages in 9.14s
1:26:03 PM: 28 packages are looking for funding
1:26:03 PM:   run `npm fund` for details
1:26:03 PM: found 2 vulnerabilities (1 low, 1 high)
1:26:03 PM:   run `npm audit fix` to fix them, or `npm audit` for details
1:26:03 PM: NPM modules installed
1:26:03 PM: Started restoring cached go cache
1:26:03 PM: Finished restoring cached go cache
1:26:03 PM: go version go1.14.4 linux/amd64
1:26:03 PM: go version go1.14.4 linux/amd64
1:26:03 PM: Installing missing commands
1:26:03 PM: Verify run directory
1:26:04 PM: ​
1:26:04 PM: ┌─────────────────────────────┐
1:26:04 PM: │        Netlify Build        │
1:26:04 PM: └─────────────────────────────┘
1:26:04 PM: ​
1:26:04 PM: ❯ Version
1:26:04 PM:   @netlify/build 5.2.1
1:26:04 PM: ​
1:26:04 PM: ❯ Flags
1:26:04 PM:   deployId: 5fae7b4698d64100083dcde4
1:26:04 PM:   mode: buildbot
1:26:04 PM: ​
1:26:04 PM: ❯ Current directory
1:26:04 PM:   /opt/build/repo/server
1:26:04 PM: ​
1:26:04 PM: ❯ Config file
1:26:04 PM:   /opt/build/repo/netlify.toml
1:26:04 PM: ​
1:26:04 PM: ❯ Context
1:26:04 PM:   production
1:26:04 PM: ​
1:26:04 PM: ┌───────────────────────────────────┐
1:26:04 PM: │ 1. Build command from Netlify app │
1:26:04 PM: └───────────────────────────────────┘
1:26:04 PM: ​
1:26:04 PM: $ npm run heroku-postbuild
1:26:05 PM: > Infoshot@0.0.4 heroku-postbuild /opt/build/repo/server
1:26:05 PM: > cd ../client && NPM_CONFIG_PRODUCTION=false npm install  && CI= npm run build
1:26:46 PM: > node-sass@4.14.1 install /opt/build/repo/client/node_modules/node-sass
1:26:46 PM: > node scripts/install.js
1:26:47 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux-x64-72_binding.node
1:26:47 PM: Download complete
1:26:47 PM: Binary saved to /opt/build/repo/client/node_modules/node-sass/vendor/linux-x64-72/binding.node
1:26:47 PM: Caching binary to /opt/buildhome/.npm/node-sass/4.14.1/linux-x64-72_binding.node
1:26:47 PM: > core-js@2.6.11 postinstall /opt/build/repo/client/node_modules/babel-runtime/node_modules/core-js
1:26:47 PM: > node -e "try{require('./postinstall')}catch(e){}"
1:26:48 PM: > core-js@3.6.5 postinstall /opt/build/repo/client/node_modules/core-js
1:26:48 PM: > node -e "try{require('./postinstall')}catch(e){}"
1:26:48 PM: > core-js-pure@3.6.5 postinstall /opt/build/repo/client/node_modules/core-js-pure
1:26:48 PM: > node -e "try{require('./postinstall')}catch(e){}"
1:26:49 PM: > node-sass@4.14.1 postinstall /opt/build/repo/client/node_modules/node-sass
1:26:49 PM: > node scripts/build.js
1:26:49 PM: Binary found at /opt/build/repo/client/node_modules/node-sass/vendor/linux-x64-72/binding.node
1:26:49 PM: Testing binary
1:26:49 PM: Binary is fine
1:26:51 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
1:26:51 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
1:26:51 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
1:26:51 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
1:26:51 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/jest-haste-map/node_modules/fsevents):
1:26:51 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
1:26:51 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
1:26:51 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
1:26:51 PM: added 1831 packages from 784 contributors and audited 1837 packages in 45.822s
1:26:53 PM: 83 packages are looking for funding
1:26:53 PM:   run `npm fund` for details
1:26:53 PM: found 0 vulnerabilities
1:26:53 PM: > client@0.1.0 build /opt/build/repo/client
1:26:53 PM: > react-scripts build
1:26:55 PM: Creating an optimized production build...
1:27:23 PM: Compiled with warnings.
1:27:23 PM: 
1:27:23 PM: ./src/components/pages/Home.js
1:27:23 PM:   Line 100:15:  Headings must have content and the content must be accessible by a screen reader  jsx-a11y/heading-has-content
1:27:23 PM: ./src/components/documentEditor/microComponents/buttonLink.js
1:27:23 PM:   Line 10:11:  'buttonFunction' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 12:24:  'stateModifier' is assigned a value but never used   no-unused-vars
1:27:23 PM:   Line 13:9:   'currentObject' is assigned a value but never used   no-unused-vars
1:27:23 PM: ./src/context/Document/DocumentState.js
1:27:23 PM:   Line 117:11:  'myConfig' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 129:13:  'res' is assigned a value but never used       no-unused-vars
1:27:23 PM: ./src/components/auth/Forgot.js
1:27:23 PM:   Line 11:19:  'usererror' is assigned a value but never used                                                               no-unused-vars
1:27:23 PM:   Line 11:30:  'clearErrors' is assigned a value but never used                                                             no-unused-vars
1:27:23 PM:   Line 25:24:  Expected '===' and instead saw '=='                                                                          eqeqeq
1:27:23 PM:   Line 28:29:  Expected '===' and instead saw '=='                                                                          eqeqeq
1:27:23 PM:   Line 32:4:   React Hook useEffect has a missing dependency: 'setAlert'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
1:27:23 PM:   Line 53:26:  Expected '===' and instead saw '=='                                                                          eqeqeq
1:27:23 PM:   Line 57:31:  Expected '===' and instead saw '=='                                                                          eqeqeq
1:27:23 PM:   Line 65:17:  Expected '===' and instead saw '=='                                                                          eqeqeq
1:27:23 PM:   Line 69:25:  Expected '===' and instead saw '=='                                                                          eqeqeq
1:27:23 PM: ./src/components/documentEditor/microComponents/levelParts/inputForm.js
1:27:23 PM:   Line 11:24:  'stateModifier' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 11:39:  'userFunctions' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 48:3:   Duplicate key 'urlFormVisible'                      no-dupe-keys
1:27:23 PM:   Line 49:3:   Duplicate key 'currentObject'                       no-dupe-keys
1:27:23 PM: ./src/components/documentEditor/functions/supportingFunctions/onDragEnd.js
1:27:23 PM:   Line 11:32:  'draggableId' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 15:7:   'dragType' is defined but never used              no-unused-vars
1:27:23 PM: ./src/context/auth/AuthState.js
1:27:23 PM:   Line 120:8:   'updateUserPassword' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 134:10:  'res' is assigned a value but never used                 no-unused-vars
1:27:23 PM: ./src/components/pages/public.js
1:27:23 PM:   Line 13:9:   'styleComponentWrapper' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 15:22:  'myFiltered' is assigned a value but never used             no-unused-vars
1:27:23 PM:   Line 15:34:  'filterDocumentsById' is assigned a value but never used    no-unused-vars
1:27:23 PM: ./src/components/documentEditor/functions/userFunctions.js
1:27:23 PM:   Line 14:3:    'arrayToObject' is defined but never used               no-unused-vars
1:27:23 PM:   Line 15:3:    'objectToArray' is defined but never used               no-unused-vars
1:27:23 PM:   Line 16:3:    'ObjectLength' is defined but never used                no-unused-vars
1:27:23 PM:   Line 17:3:    'filterObjToFirstItem' is defined but never used        no-unused-vars
1:27:23 PM:   Line 18:3:    'filterArrayById' is defined but never used             no-unused-vars
1:27:23 PM:   Line 19:3:    'filterArrayByChildrenIds' is defined but never used    no-unused-vars
1:27:23 PM:   Line 20:3:    'mongoArrayToObject' is defined but never used          no-unused-vars
1:27:23 PM:   Line 23:3:    'getCohort' is defined but never used                   no-unused-vars
1:27:23 PM:   Line 25:3:    'getParentCohorts' is defined but never used            no-unused-vars
1:27:23 PM:   Line 29:3:    'getHierachy' is defined but never used                 no-unused-vars
1:27:23 PM:   Line 34:3:    'getParentFromClickedObject' is defined but never used  no-unused-vars
1:27:23 PM:   Line 127:10:  'cohortName' is assigned a value but never used         no-unused-vars
1:27:23 PM:   Line 129:25:  Expected '===' and instead saw '=='                     eqeqeq
1:27:23 PM:   Line 134:12:  'child' is assigned a value but never used              no-unused-vars
1:27:23 PM:   Line 134:19:  'childrenCohort' is assigned a value but never used     no-unused-vars
1:27:23 PM:   Line 141:20:  'parentCohort' is assigned a value but never used       no-unused-vars
1:27:23 PM:   Line 157:13:  'wordsCohort' is assigned a value but never used        no-unused-vars
1:27:23 PM:   Line 160:13:  'parentCohort' is assigned a value but never used       no-unused-vars
1:27:23 PM:   Line 177:13:  'newparent' is assigned a value but never used          no-unused-vars
1:27:23 PM:   Line 240:9:   'id' is assigned a value but never used                 no-unused-vars
1:27:23 PM: ./src/components/document/DocumentItem.js
1:27:23 PM:   Line 18:9:  'onDelete' is assigned a value but never used   no-unused-vars
1:27:23 PM:   Line 23:9:  'editCards' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 27:9:  'editMyDoc' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/microComponents/documentToolbar.js
1:27:23 PM:   Line 1:28:   'useContext' is defined but never used                      no-unused-vars
1:27:23 PM:   Line 15:8:   'ContentWrapper' is defined but never used                  no-unused-vars
1:27:23 PM:   Line 16:8:   'ModifyWrapper' is defined but never used                   no-unused-vars
1:27:23 PM:   Line 36:13:  'loadPublic' is assigned a value but never used             no-unused-vars
1:27:23 PM:   Line 50:11:  'styleEmbedCodeWrapper' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/components/pages/editing.js
1:27:23 PM:   Line 1:29:   'useEffect' is defined but never used                no-unused-vars
1:27:23 PM:   Line 2:10:   'objectToArray' is defined but never used            no-unused-vars
1:27:23 PM:   Line 3:8:    'DocumentEditor' is defined but never used           no-unused-vars
1:27:23 PM:   Line 4:8:    'Spinner' is defined but never used                  no-unused-vars
1:27:23 PM:   Line 18:11:  'Documents' is assigned a value but never used       no-unused-vars
1:27:23 PM:   Line 18:22:  'loading' is assigned a value but never used         no-unused-vars
1:27:23 PM:   Line 18:31:  'updateDocument' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/utils/utilityFunctions.js
1:27:23 PM:   Line 1:8:    'React' is defined but never used                     no-unused-vars
1:27:23 PM:   Line 1:17:   'useReducer' is defined but never used                no-unused-vars
1:27:23 PM:   Line 1:29:   'useContext' is defined but never used                no-unused-vars
1:27:23 PM:   Line 2:8:    'axios' is defined but never used                     no-unused-vars
1:27:23 PM:   Line 15:9:   'childObjectName' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 90:29:  'containerArray' was used before it was defined       no-use-before-define
1:27:23 PM:   Line 96:9:   'parentObject2' is assigned a value but never used    no-unused-vars
1:27:23 PM: ./src/components/auth/changePassword.js
1:27:23 PM:   Line 27:18:  'error' is assigned a value but never used            no-unused-vars
1:27:23 PM:   Line 27:25:  'clearErrors' is assigned a value but never used      no-unused-vars
1:27:23 PM:   Line 27:38:  'isAuthenticated' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 41:11:  'token' is assigned a value but never used            no-unused-vars
1:27:23 PM: ./src/App.js
1:27:23 PM:   Line 27:8:  'Navbar' is defined but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/levels/page.js
1:27:23 PM:   Line 2:10:  'Droppable' is defined but never used  no-unused-vars
1:27:23 PM:   Line 12:8:  'ChildList' is defined but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/microComponents/levelParts/inputFormWrite.js
1:27:23 PM:   Line 2:17:   'Component' is defined but never used                no-unused-vars
1:27:23 PM:   Line 20:11:  'componentStyle' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/levels/paragraph.js
1:27:23 PM:   Line 2:17:   'Fragment' is defined but never used                      no-unused-vars
1:27:23 PM:   Line 3:10:   'Droppable' is defined but never used                     no-unused-vars
1:27:23 PM:   Line 15:24:  'stateModifier' is assigned a value but never used        no-unused-vars
1:27:23 PM:   Line 25:9:   'editingButtonsFinal' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/microComponents/levelParts/inputFormReadOnly.js
1:27:23 PM:   Line 2:17:   'Fragment' is defined but never used                                                                                          no-unused-vars
1:27:23 PM:   Line 6:11:   'editorState' is assigned a value but never used                                                                              no-unused-vars
1:27:23 PM:   Line 6:24:   'stateModifier' is assigned a value but never used                                                                            no-unused-vars
1:27:23 PM:   Line 6:39:   'userFunctions' is assigned a value but never used                                                                            no-unused-vars
1:27:23 PM:   Line 8:9:    'finalTextStyle' is assigned a value but never used                                                                           no-unused-vars
1:27:23 PM:   Line 11:66:  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
1:27:23 PM: ./src/components/documentEditor/documentEditor.js
1:27:23 PM:   Line 2:29:    'useContext' is defined but never used                          no-unused-vars
1:27:23 PM:   Line 5:8:     'JsonData' is defined but never used                            no-unused-vars
1:27:23 PM:   Line 120:13:  'mystate' is assigned a value but never used                    no-unused-vars
1:27:23 PM:   Line 292:11:  'finalButtonsConfig' is assigned a value but never used         no-unused-vars
1:27:23 PM:   Line 302:11:  'finalButtonsToolbarConfig' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 325:11:  'childStyle' is assigned a value but never used                 no-unused-vars
1:27:23 PM: ./src/components/documentEditor/functions/supportingFunctions/create.js
1:27:23 PM:   Line 2:3:    'arrayToObject' is defined but never used      no-unused-vars
1:27:23 PM:   Line 5:3:    'filterArrayById' is defined but never used    no-unused-vars
1:27:23 PM:   Line 6:3:    'getCohort' is defined but never used          no-unused-vars
1:27:23 PM:   Line 7:3:    'getCohortFromId' is defined but never used    no-unused-vars
1:27:23 PM:   Line 10:10:  'getCurrentCohorts' is defined but never used  no-unused-vars
1:27:23 PM:   Line 11:3:   'getParentCohorts' is defined but never used   no-unused-vars
1:27:23 PM:   Line 12:3:   'getChildCohorts' is defined but never used    no-unused-vars
1:27:23 PM:   Line 13:3:   'getParents' is defined but never used         no-unused-vars
1:27:23 PM:   Line 14:3:   'getChildren' is defined but never used        no-unused-vars
1:27:23 PM:   Line 15:3:   'getHierachy' is defined but never used        no-unused-vars
1:27:23 PM:   Line 16:3:   'getObjectFromId' is defined but never used    no-unused-vars
1:27:23 PM: ./src/components/documentEditor/functions/supportingFunctions/delete.js
1:27:23 PM:   Line 2:3:   'arrayToObject' is defined but never used             no-unused-vars
1:27:23 PM:   Line 3:3:   'objectToArray' is defined but never used             no-unused-vars
1:27:23 PM:   Line 4:3:   'ObjectLength' is defined but never used              no-unused-vars
1:27:23 PM:   Line 5:3:   'filterObjToFirstItem' is defined but never used      no-unused-vars
1:27:23 PM:   Line 6:3:   'filterArrayById' is defined but never used           no-unused-vars
1:27:23 PM:   Line 7:3:   'filterArrayByChildrenIds' is defined but never used  no-unused-vars
1:27:23 PM:   Line 8:3:   'getCohort' is defined but never used                 no-unused-vars
1:27:23 PM:   Line 9:3:   'getCohortFromId' is defined but never used           no-unused-vars
1:27:23 PM:   Line 16:9:  Expected '!==' and instead saw '!='                   eqeqeq
1:27:23 PM: ./src/components/documentEditor/microComponents/levelParts/embedCode.js
1:27:23 PM:   Line 2:8:  'PropTypes' is defined but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/levels/word.js
1:27:23 PM:   Line 3:10:   'Droppable' is defined but never used                     no-unused-vars
1:27:23 PM:   Line 14:24:  'stateModifier' is assigned a value but never used        no-unused-vars
1:27:23 PM:   Line 24:9:   'editingButtonsFinal' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/microComponents/ButtonDocuments.js
1:27:23 PM:   Line 3:10:   'Redirect' is defined but never used             no-unused-vars
1:27:23 PM:   Line 10:43:  'buttonName' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 18:11:  No duplicate props allowed                       react/jsx-no-duplicate-props
1:27:23 PM: ./src/components/documentEditor/microComponents/button.js
1:27:23 PM:   Line 3:10:   'Redirect' is defined but never used             no-unused-vars
1:27:23 PM:   Line 9:43:   'buttonName' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 19:11:  No duplicate props allowed                       react/jsx-no-duplicate-props
1:27:23 PM: ./src/index.js
1:27:23 PM:   Line 3:8:  'App' is defined but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/microComponents/levelParts/modify.js
1:27:23 PM:   Line 3:8:  'dragHandleProps' is defined but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/functions/supportingFunctions/dataNav.js
1:27:23 PM:   Line 40:11:  'getChildrenCohort' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/context/Document/DocumentReducer.js
1:27:23 PM:   Line 40:15:  'updateReturn' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/functions/supportingFunctions/dragUrl.js
1:27:23 PM:   Line 44:9:  'urlString' is assigned a value but never used  no-unused-vars
1:27:23 PM: ./src/components/documentEditor/functions/supportingFunctions/generic.js
1:27:23 PM:   Line 45:7:  'stateToArray' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 77:7:  'consoleLog' is assigned a value but never used    no-unused-vars
1:27:23 PM: ./src/components/documentEditor/levels/chapter.js
1:27:23 PM:   Line 4:8:   'styled' is defined but never used       no-unused-vars
1:27:23 PM:   Line 18:9:  'id' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 91:3:  Duplicate key 'curId'                    no-dupe-keys
1:27:23 PM: ./src/components/documentEditor/microComponents/decisionBox.js
1:27:23 PM:   Line 7:9:  'styleComponentWrapper' is assigned a value but never used  no-unused-vars
1:27:23 PM:   Line 9:9:  'styleModify' is assigned a value but never used            no-unused-vars
1:27:23 PM: ./src/components/document/DocumentForm.js
1:27:23 PM:   Line 98:13:   Duplicate key 'url'                                                                                                                                                                                                                                 no-dupe-keys
1:27:23 PM:   Line 105:6:   React Hook useEffect has an unnecessary dependency: 'DocumentContext'. Either exclude it or remove the dependency array. Outer scope values like 'DocumentContext' aren't valid dependencies because mutating them doesn't re-render the component  react-hooks/exhaustive-deps
1:27:23 PM:   Line 111:18:  'ultimates' is assigned a value but never used                                                                                                                                                                                                      no-unused-vars
1:27:23 PM:   Line 111:29:  'chapters' is assigned a value but never used                                                                                                                                                                                                       no-unused-vars
1:27:23 PM:   Line 111:39:  'pages' is assigned a value but never used                                                                                                                                                                                                          no-unused-vars
1:27:23 PM:   Line 111:46:  'paragraphs' is assigned a value but never used                                                                                                                                                                                                     no-unused-vars
1:27:23 PM:   Line 111:58:  'words' is assigned a value but never used                                                                                                                                                                                                          no-unused-vars
1:27:23 PM:   Line 117:9:   Unnecessarily computed property ['name'] found                                                                                                                                                                                                      no-useless-computed-key
1:27:23 PM: Search for the keywords to learn more about each warning.
1:27:23 PM: To ignore, add // eslint-disable-next-line to the line before.
1:27:23 PM: File sizes after gzip:
1:27:23 PM:   86.27 KB  build/static/js/2.0580d316.chunk.js
1:27:23 PM:   20.93 KB  build/static/js/main.abf6e4d7.chunk.js
1:27:23 PM:   1.71 KB   build/static/css/main.5c0bedca.chunk.css
1:27:23 PM:   773 B     build/static/js/runtime-main.09b85ec0.js
1:27:23 PM: The project was built assuming it is hosted at /.
1:27:23 PM: You can control this with the homepage field in your package.json.
1:27:23 PM: The build folder is ready to be deployed.
1:27:23 PM: You may serve it with a static server:
1:27:23 PM:   yarn global add serve
1:27:23 PM:   serve -s build
1:27:23 PM: Find out more about deployment here:
1:27:23 PM:   bit.ly/CRA-deploy
1:27:23 PM: ​
1:27:23 PM: (build.command completed in 1m 18.6s)
1:27:23 PM: ​
1:27:23 PM: ┌─────────────────────────────┐
1:27:23 PM: │   Netlify Build Complete    │
1:27:23 PM: └─────────────────────────────┘
1:27:23 PM: ​
1:27:23 PM: (Netlify Build completed in 1m 18.6s)
1:27:23 PM: Caching artifacts
1:27:23 PM: Started saving node modules
1:27:23 PM: Finished saving node modules
1:27:23 PM: Started saving build plugins
1:27:23 PM: Finished saving build plugins
1:27:23 PM: Started saving pip cache
1:27:23 PM: Finished saving pip cache
1:27:23 PM: Started saving emacs cask dependencies
1:27:23 PM: Finished saving emacs cask dependencies
1:27:23 PM: Started saving maven dependencies
1:27:23 PM: Finished saving maven dependencies
1:27:23 PM: Started saving boot dependencies
1:27:23 PM: Finished saving boot dependencies
1:27:23 PM: Started saving go dependencies
1:27:23 PM: Finished saving go dependencies
1:27:27 PM: Build script success
1:27:27 PM: Starting to deploy site from ''
1:27:29 PM: Failing build: Failed to deploy site
1:27:29 PM: Failed during stage 'deploying site': Invalid filename 'client/node_modules/es6-iterator/#/chain.js'. Deployed filenames cannot contain # or ? characters
1:27:29 PM: Finished processing build request in 1m45.271615397s

I’m not 100% sure if I’ve understood your use case, but, this might help:

package.json has to be in the directory configured as ‘base’. But, I guess, you also want the same Node Modules to be used by your client folder too? In that case, create a package.json in the repo root with all the dependencies used by both the folders and configure the base path as /, and change your build command to cd server && <build command> (I haven’t tried if it works, but, it might).

You can install package jsons when nested via a script in your root package json where you cd into the correct directory and install.

It is also worth noting that netlify will not run your nodejs app or express server, it is a static host. You can use a serverless implementation of express via lambda functions if you require this on netlify.