You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would like some instructions on using this on Ubuntu 20.04 Droplet with NodeJs. Struggling to get this live. After running yarn build (which seems to be killed midway through) and then yarn start in production environment, I keep getting this error:
Could not find a production build in the '/var/www/example.com/.next' directory. Try building your app with 'next build' before starting the production server.
Would appreciate a tutorial on showing how this can be done.
The text was updated successfully, but these errors were encountered:
What droplet size are you trying to use? Might be worth trying temporarily on something with more memory.
Funnily enough, I was using the most basic droplet. So I've resized the droplet to a more reasonable size and now I've rebuilt using yarn build and it worked! So thank you.
However, and maybe you can help me here - every time I use yarn build (blitz build) it seems to do a heap of logging before just simply displaying the build output (as it would with next build). See this image. Do I have some logging flag set somewhere or something? Seems to be something to do with TypeScript.
Would like some instructions on using this on Ubuntu 20.04 Droplet with NodeJs. Struggling to get this live. After running
yarn build
(which seems to be killed midway through) and thenyarn start
in production environment, I keep getting this error:Could not find a production build in the '/var/www/example.com/.next' directory. Try building your app with 'next build' before starting the production server.
Would appreciate a tutorial on showing how this can be done.
The text was updated successfully, but these errors were encountered: