What is the improvement or update you wish to see?
I'm having issues using a custom server.js with the with-docker example.
node:internal/modules/cjs/loader:408
throw err;
^
Error: Cannot find module '/app/node_modules/next/dist/server/next.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:400:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:613:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
at Function.Module._load (node:internal/modules/cjs/loader:841:27)
at Module.require (node:internal/modules/cjs/loader:1067:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/app/server.js:4:14)
at Module._compile (node:internal/modules/cjs/loader:1165:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
at Module.load (node:internal/modules/cjs/loader:1043:32) {
code: 'MODULE_NOT_FOUND',
path: '/app/node_modules/next/package.json',
requestPath: 'next'
}
What is the improvement or update you wish to see?
I'm having issues using a custom server.js with the with-docker example.
To reproduce
COPY server.js ./server.js
as the lastCOPY
in the final build step.Is there any context that might help us understand?
I need an example of how to use a custom server.js with the with-docker example.
Does the docs page already exist? Please link to it.
No response
The text was updated successfully, but these errors were encountered: