Which folders & files to upload if use `standalone` build
Unanswered
Sutherman posted this in #help-forum
I have add "standalone" to next.config.js and run
Then I upload
and
Is that right so far?
But if I run
What's the issue here?
buildThen I upload
.next/standalone > /var/www/htmland
.next/static > /var/www/html/.next/static Is that right so far?
But if I run
node ./server.js on the server, I got many errors like:Error: Cannot find module 'next/dist/shared/lib/html-context.js'What's the issue here?